Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp734697ybh; Tue, 10 Mar 2020 07:19:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsoxhafMC9yKXy9VL+Wxf9tT8QZt2gHMEP0nVCsKFTaTixBE6or2BqvMnjMeSKN+uh8BkKg X-Received: by 2002:aca:5dc3:: with SMTP id r186mr1318051oib.137.1583849972695; Tue, 10 Mar 2020 07:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583849972; cv=none; d=google.com; s=arc-20160816; b=X1cDJgXrvj5Lp2VM+gR5nuVLTdbwXf3PbDzRK2881MFXEIKs8NhBkGabd+nfc6P50e Q+CfYzq4u/x7XHwl3HsU5TVWkfvPSsMjLIRFNioWWrrnpM/0YUdmAZaJTz9pmdNPJaF1 bND7iaz70w0J+O0tkjrHuDM3z3/IdE1e10nTYU9zyO8kKUb6fXZC/wu/RTNTf8WgPhGZ aVKMvUlI9l4OaKa1D6vQAHJov8+uzOp+atC2OuBo47ZyFhta81kSOqdAJSkbl0zuTe63 F3o3t5sW+n1z8UJz0Rh+rt2+C7CEOuA9ROHq5DfdpW3FRBTNAjrLXtiwQWr3PVps+j7K IJKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=ShTFvOw+Skmjl+3OHfLAiPvcE+hWfchAS2Vs9qqEziw=; b=zdVNGYVNh3igEfUOTQ2RPveMchpRz8n1VJ0nfI4X4Nr2YSdryBOJnCd6DhC87Od/Pw k3XX9vShfmdUHClmzXReajhL+S0Dkff3qZ/0Bt8eVYCLUVR3tnoCQVesoUNzMuKVO27I U8J9Vhi+FgNlWgRZ0eh2gvxW3jtS8uNl6harfMJwZEeNOqJPokOwVKg13Ay9sk85ijBH aUdOdA7RvM46w+i3a3+ykGLfdPYsyzHeImq6XQrdKsnjp2szCzRRwAiwCGsRFCXe0Qny h178TlWg44eucPwevHIIizDldjXN9IJeVdgoajdTMoRwhp5G4FCBW5xPfyQ/cVOaWdzl Irlw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10si5518592oij.109.2020.03.10.07.19.07; Tue, 10 Mar 2020 07:19:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727241AbgCJORM (ORCPT + 99 others); Tue, 10 Mar 2020 10:17:12 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56028 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727146AbgCJORM (ORCPT ); Tue, 10 Mar 2020 10:17:12 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 24C8F5FC488291F25718; Tue, 10 Mar 2020 22:17:09 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Tue, 10 Mar 2020 22:17:01 +0800 From: YueHaibing To: , , , , , CC: , , YueHaibing Subject: [PATCH v2] iio:ad7797: Use correct attribute_group Date: Tue, 10 Mar 2020 22:16:54 +0800 Message-ID: <20200310141654.7188-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 In-Reply-To: <9c53e05a-294a-c2d1-8808-605b10c964a9@metafoo.de> References: <9c53e05a-294a-c2d1-8808-605b10c964a9@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, }; -- 2.7.4