From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A106FC47254 for ; Fri, 1 May 2020 13:41:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 787612173E for ; Fri, 1 May 2020 13:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340482; bh=nB7gP91EFe3d08JibxkrjH5bmM8vd9VvuEXyswdD+/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=YNF+9GaSne+BBVHMw4Vwk/jCPC5p4t8UiNDmdJtqIl1kAX0g0iHkj1ih/j76dEAA1 ytLruA0ZS/JPghp610opT7TgEwmrrnHP4QXmRfO0wTBFYTWyFm9Wi2sGxOK3h+RqtM Au9HsNb81kiBQJdsMKb1vJ8csvA7xBj+aEnt9+RY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731299AbgEANlV (ORCPT ); Fri, 1 May 2020 09:41:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:41594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731301AbgEANlT (ORCPT ); Fri, 1 May 2020 09:41:19 -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 1B51720757; Fri, 1 May 2020 13:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588340479; bh=nB7gP91EFe3d08JibxkrjH5bmM8vd9VvuEXyswdD+/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zZ0+iBC1EN+6pVoR7bKTUYzl6eiEKiZxX/YPIhkm4LGZJXC97sOsQAKsC39s9oOMh Qs2ePCZACZduKKpp9nGXY7rTJ5sGY9CFitX4FOnRRmJ41SEq4x+FgQdvnBMNnPlJmv TW5pcd88uETCwXWOccOSRbXioeA23ZsNSAd4goIU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , Lars-Peter Clausen , Jonathan Cameron Subject: [PATCH 5.6 011/106] iio:ad7797: Use correct attribute_group Date: Fri, 1 May 2020 15:22:44 +0200 Message-Id: <20200501131545.830643862@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200501131543.421333643@linuxfoundation.org> References: <20200501131543.421333643@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: YueHaibing commit 28535877ac5b2b84f0d394fd67a5ec71c0c48b10 upstream. 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: Greg Kroah-Hartman --- drivers/iio/adc/ad7793.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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, };