Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp38805ybj; Fri, 8 May 2020 06:05:45 -0700 (PDT) X-Google-Smtp-Source: APiQypImNSoXkcB21WSm+j6dEWqYkjRpn3mYnJ5IWFHFJ0GCspR+C3p+G79Z3f+lMyPuVxyG5HYF X-Received: by 2002:a17:906:11c7:: with SMTP id o7mr1855180eja.108.1588943145770; Fri, 08 May 2020 06:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943145; cv=none; d=google.com; s=arc-20160816; b=NLCf4g5gOiFCTISCZV/5+T/dTYDwrf4aMq8LQezyOByx1FjGrhcmvTFa+RAKRZ9SAR oUNWt1sNjfWklCj/SPyuvsSL9QVSPOhH8KSlflG8tR8wu4fwIFXPDscEPNW3z932hw5f i+TwDUPeMJB2ObmJveMpvy3YUK50crm4Q7U7R806YOtqyxcX38xCEUl+cak4Tnhyk8vr W4oxfC0G/MD2Y7kvlw1qIduzs8B1ywgL26jyb0ulHmlx+WskFJYyXbhuDaR+ipRj3Qdm sfVdoYSCwviSnG2mUi5J4TV7Bx7Ywb60Md15azdNP4yoW3r+qUEG4wfZKDMHXhweAHwo pTEw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dZgjsvp0Q4rxKGYAHzBUO1XbX3bvFnnUqb/+wpqx328=; b=lCUUWhqCEx1PqYuVfJk5A1bHz0Bd/pmmGt5RbsKCnfPFYvJHjg908NWUsZt0mXcRwC 5Tr4VnwSDFcuikW3DeDIsk0X//XryCLKzZatO+qqYdQ/3zORIPzPCBiH5CDLJ6pGFkUi /ut0ZfMzQd/nE2aRf20sbzA7whsW/IskT4MnvWrgFSObfROvZ/Sp/x6quWtwMuMTmwwI snvWYYp9CN0uvoTmYJNgxQlyxj4QQI7LjQvuY9ZPyoXae+uXDE103IR27xXPOrlkzNSf QryRhGBsHsd08Vz4Rd0B3cU0MpYM7gXF39sbaYf0g5xHdcBPcmjwxK6dUTjAOsTg5jgR zuBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bs90bC4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly2si905200ejb.95.2020.05.08.06.05.14; Fri, 08 May 2020 06:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bs90bC4Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728823AbgEHNDl (ORCPT + 99 others); Fri, 8 May 2020 09:03:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:56136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729775AbgEHMts (ORCPT ); Fri, 8 May 2020 08:49:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 BE7D724958; Fri, 8 May 2020 12:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588942188; bh=Woue08UuH1E6xYnR1Xr3NYFk9h75iRDPF90J70dmpe8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bs90bC4ZAMgXCmCkA5Lqindne7eZIjGWRKGfLeijQyCKrzk5/PErYBWv0z16Qk5Yq +B8j1/+V3Rl89Z3pq4/UPQNOd4ocn0uXHraFF296Lwn+DKJtllrxhzsHzwHS70/csN +j2fAo1Y3JbnuyXW0t3KjxhzZ2zElsaIAYMUOG80= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Lars-Peter Clausen , Jonathan Cameron , Sasha Levin Subject: [PATCH 4.9 03/18] iio:ad7797: Use correct attribute_group Date: Fri, 8 May 2020 14:35:06 +0200 Message-Id: <20200508123031.777814074@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508123030.497793118@linuxfoundation.org> References: <20200508123030.497793118@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 28535877ac5b2b84f0d394fd67a5ec71c0c48b10 ] 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 Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- 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 47c3d7f329004..437762a1e4877 100644 --- a/drivers/iio/adc/ad7793.c +++ b/drivers/iio/adc/ad7793.c @@ -570,7 +570,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, .driver_module = THIS_MODULE, }; -- 2.20.1