Received: by 10.213.65.68 with SMTP id h4csp342559imn; Fri, 23 Mar 2018 05:59:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELu/r3Z4VmZnAG9NXmtwarv7EkpvIn+w+tBzrx/hp00SNq9vx0sg4I4mFIKW+eGHjDbpXRyG X-Received: by 10.167.131.199 with SMTP id j7mr23649182pfn.99.1521809949802; Fri, 23 Mar 2018 05:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521809949; cv=none; d=google.com; s=arc-20160816; b=WAPSUbF2hPXLccqgCnxStn3ygY7OJcqE2iK8aiYzcIybTsIUtGhxBypB6fvce3spjs lfbJNti5CJUJAadENkeNwGNDza/KDornE4BCrvS1lKOKUzP9I7jQJGFXDoWgApUa2s8h xCTjb23SAmVJMHTTp9au/gAo0DZtCQXSWdZzljSOyZTd1v8E3FGZg4JFdmo3Gb5WXJyn j5FbKZavtjTyQvHSluzCIwtUWSG+6FYnIE27aWnri3hFBINMB+Oxuh3uS92tLU7EGd2C nd/wed5hoMcOZ9MziBS+rRm7hK305Zkqajki6Q+s5vRcCXzc+m5dvq9OagRQAQ0G4iGH ZMTg== 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 :arc-authentication-results; bh=K32VUCj8vjWavVslFGMATAb5kAgyOcKg+tFKcYqrmi8=; b=UH4GXE3D6DQtvZzZI6F8F2jhJL2bmtb6QOVfywhSK2m5TUtxI0oj1lyvPSYD5Elxo2 RRVxxSdZSkfVMNkMPLrTaaSi/IgOHLIOUylJaxC42Jxq283Gk6Wu6RiJtCK1n64tVl12 iLW2SPm1uCVmIbQtVYwRqdkYoyK5C7z1zprVP3tMq+ktyislWSV/QoGJdIOYk3sBAjea YKjXEc4rlZFeZ0GemDn6xDmH4lJ+5udpauSLeVnTdUeIXj4z+bu4NGlpEXau1efCtmqX uQlsF/DxBSK3QJHzJ0dCQaOwS6warY8brZjTQYpUsMa5hhXnjg6cOmEtEeti9Z93AgB3 IOtA== 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 e12si6144815pgu.155.2018.03.23.05.58.54; Fri, 23 Mar 2018 05:59:09 -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 S1752918AbeCWM5w convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Mar 2018 08:57:52 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:41283 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752865AbeCWM5p (ORCPT ); Fri, 23 Mar 2018 08:57:45 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 12DB1914384F6; Fri, 23 Mar 2018 20:57:40 +0800 (CST) Received: from localhost (10.202.226.45) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 23 Mar 2018 20:57:38 +0800 Date: Fri, 23 Mar 2018 12:57:29 +0000 From: Jonathan Cameron To: =?ISO-8859-1?Q?Hern=E1n?= Gonzalez CC: , , , , , , Subject: Re: [PATCH 10/11] staging: iio: ad7746: Rename sysfs attrs to comply with the ABI Message-ID: <20180323135729.00003e93@huawei.com> In-Reply-To: <1521642539-4845-11-git-send-email-hernan@vanguardiasur.com.ar> References: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> <1521642539-4845-11-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.202.226.45] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Mar 2018 11:28:58 -0300 Hern?n Gonzalez wrote: > Signed-off-by: Hern?n Gonzalez Please look at what these do. It is not what those abi elements are documented as doing. Also if it were you would need to support them via read_raw and write_raw and put them in the relevant info mask elements. Jonathan > --- > drivers/staging/iio/cdc/ad7746.c | 30 +++++++++++++++--------------- > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c > index b6b99e2..c1f76fc 100644 > --- a/drivers/staging/iio/cdc/ad7746.c > +++ b/drivers/staging/iio/cdc/ad7746.c > @@ -336,16 +336,16 @@ static ssize_t ad7746_start_gain_calib(struct device *dev, > AD7746_CONF_MODE_GAIN_CAL); > } > > -static IIO_DEVICE_ATTR(in_capacitance0_calibbias_calibration, > - 0200, NULL, ad7746_start_offset_calib, CIN1); > -static IIO_DEVICE_ATTR(in_capacitance1_calibbias_calibration, > - 0200, NULL, ad7746_start_offset_calib, CIN2); > -static IIO_DEVICE_ATTR(in_capacitance0_calibscale_calibration, > - 0200, NULL, ad7746_start_gain_calib, CIN1); > -static IIO_DEVICE_ATTR(in_capacitance1_calibscale_calibration, > - 0200, NULL, ad7746_start_gain_calib, CIN2); > -static IIO_DEVICE_ATTR(in_voltage0_calibscale_calibration, > - 0200, NULL, ad7746_start_gain_calib, VIN); > +static IIO_DEVICE_ATTR(in_capacitance0_calibbias, 0200, NULL, > + ad7746_start_offset_calib, CIN1); > +static IIO_DEVICE_ATTR(in_capacitance1_calibbias, 0200, NULL, > + ad7746_start_offset_calib, CIN2); > +static IIO_DEVICE_ATTR(in_capacitance0_calibscale, 0200, NULL, > + ad7746_start_gain_calib, CIN1); > +static IIO_DEVICE_ATTR(in_capacitance1_calibscale, 0200, NULL, > + ad7746_start_gain_calib, CIN2); > +static IIO_DEVICE_ATTR(in_voltage0_calibscale, 0200, NULL, > + ad7746_start_gain_calib, VIN); > > static int ad7746_store_cap_filter_rate_setup(struct ad7746_chip_info *chip, > int val) > @@ -388,11 +388,11 @@ static IIO_CONST_ATTR(in_capacitance_sampling_frequency_available, > "91 84 50 26 16 13 11 9"); > > static struct attribute *ad7746_attributes[] = { > - &iio_dev_attr_in_capacitance0_calibbias_calibration.dev_attr.attr, > - &iio_dev_attr_in_capacitance0_calibscale_calibration.dev_attr.attr, > - &iio_dev_attr_in_capacitance1_calibscale_calibration.dev_attr.attr, > - &iio_dev_attr_in_capacitance1_calibbias_calibration.dev_attr.attr, > - &iio_dev_attr_in_voltage0_calibscale_calibration.dev_attr.attr, > + &iio_dev_attr_in_capacitance0_calibbias.dev_attr.attr, > + &iio_dev_attr_in_capacitance0_calibscale.dev_attr.attr, > + &iio_dev_attr_in_capacitance1_calibscale.dev_attr.attr, > + &iio_dev_attr_in_capacitance1_calibbias.dev_attr.attr, > + &iio_dev_attr_in_voltage0_calibscale.dev_attr.attr, > &iio_const_attr_in_voltage_sampling_frequency_available.dev_attr.attr, > &iio_const_attr_in_capacitance_sampling_frequency_available.dev_attr.attr, > NULL,