Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1409399ybh; Sun, 15 Mar 2020 02:18:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuAjylCuCf2knwaPyZk4slUQMM+yugAz2sk4I1kxjEjhZwmn+Y9bN8CsZva7aDU9AvGhHzZ X-Received: by 2002:a9d:1eea:: with SMTP id n97mr14945862otn.139.1584263896845; Sun, 15 Mar 2020 02:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584263896; cv=none; d=google.com; s=arc-20160816; b=LmZXB18cO2v73pZY2VTlFL9D1OPoIs8D7LQdbdhkgoppHL1aJwyYJkgrgESX/pzf12 hefb9lm+yvfnIGJ0yQpOdvObQuwNjd1C7QGH6PaF/EqyuqhoIcGtN/vCsd0JdyDAmENM I/eJWt/6Z0IOOt0T3eNTITicIBUndBthJGRw++9Jq3Hao3l0qHQYBms8Igcrjyb8X9fl 7YTy73UYLOTHl6+7xRrLkJLS9H6yr18mXK4DKOKfJkiDCf2PkpR7oUorxqf0duO6IZg0 uMnE9y+S1qltCOxnXjws5bFt+lOQE76W/zx+P4bgMkhlXn1//n4caOvn54ndqr7xSxrz hXjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=LcxxoeMETk8ZX9RNm4CFv2VYIiR57zH+xFyButE2ERU=; b=dSkry3yPAaurKh5bWnMfpmNFDIerJ1Pl/+QUqvW9MSy6//zKvknyrSRQnZzViXEvBV NElL/rDMVBovNBwBdiDK1GLayBF2oj5lEp0aFzu3MTAyXA0kgJd3u2BESwS4hEMWYdxh M4LOz1FIiL16J2ub1A89LOyycYym2rRFGWPIUyw8gnMKczzfdUh0IRNx1lWolS+rGBIZ tn5TY0H4fG+t7VItYBh8u+9oqy8NTctzwfMXh6yoZwYkljfZyt5DWFwGdvIfKssOvwog NbtmesYaXcLbgJ1n0x8r7B3aP/UzVvkyV0W22xDQ24NaEDL7vdc/n0ODq0IvP9ga6VHl B8DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R0BstTd1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e19si7892649oti.20.2020.03.15.02.18.04; Sun, 15 Mar 2020 02:18:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R0BstTd1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728100AbgCOJRo (ORCPT + 99 others); Sun, 15 Mar 2020 05:17:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:39126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728065AbgCOJRo (ORCPT ); Sun, 15 Mar 2020 05:17:44 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7C5EB205ED; Sun, 15 Mar 2020 09:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584263863; bh=M3gQDpipo5zEV/yucmJMkSori8mdYECFiTGbqY+cERQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R0BstTd1ON4oodAY0pWQJkF40ciLG5q/ilX/Zux1zXD/wd3U+dYsUVpMe63JZNSe5 aU6mgOLtT8+uTm8Mb3ajal7L7cvnlFSUD9VGWZtHsh9dvl9W+ZgJFJkXZLND69pGUF 1Vtb3i6ocCZ+s56crTxbO5Rnn00XqG6ycbJ/RDh8= Date: Sun, 15 Mar 2020 09:17:38 +0000 From: Jonathan Cameron To: YueHaibing Cc: , , , , , , Subject: Re: [PATCH v2] iio:ad7797: Use correct attribute_group Message-ID: <20200315091738.71f9dddf@archlinux> In-Reply-To: <20200310141654.7188-1-yuehaibing@huawei.com> References: <9c53e05a-294a-c2d1-8808-605b10c964a9@metafoo.de> <20200310141654.7188-1-yuehaibing@huawei.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Mar 2020 22:16:54 +0800 YueHaibing wrote: > It should use ad7797_attribute_group in ad7797_info, > according to commit ("iio:ad7793: Add support for the ad7796 and ad7797"). > > Scale is fixed for the ad7796 and not programmable, hence > should not have the scale_available attribute. > > Fixes: fd1a8b912841 ("iio:ad7793: Add support for the ad7796 and ad7797") > Signed-off-by: YueHaibing > Reviewed-by: Lars-Peter Clausen Thanks, I've queued this up. Won't push out just yet as I'm waiting for Greg to pick up a pull request after which I'd like to fast forward the fixes branch. Thanks, Jonathan > --- > v2: renew log as Lars-Peter's comment > > drivers/iio/adc/ad7793.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c > index b747db9..e5691e3 100644 > --- a/drivers/iio/adc/ad7793.c > +++ b/drivers/iio/adc/ad7793.c > @@ -542,7 +542,7 @@ static const struct iio_info ad7797_info = { > .read_raw = &ad7793_read_raw, > .write_raw = &ad7793_write_raw, > .write_raw_get_fmt = &ad7793_write_raw_get_fmt, > - .attrs = &ad7793_attribute_group, > + .attrs = &ad7797_attribute_group, > .validate_trigger = ad_sd_validate_trigger, > }; >