From nobody Sun Dec 14 13:52:32 2025 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9AEE6219A67; Tue, 4 Feb 2025 15:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681274; cv=none; b=e8pc8+r3q70863ypRNRkgAZ6lCTwT8mAac00H3MZhZ9hS1d4Yipye/3/NKDNWqpKx1mdM+s83xcsZM1UP0i+LUFDWJA5BR+EZNGONXk76NLjmhTJLEXH1+H1szwOGHBWSIwNxwDl/ciwA2SHhxLvgQ3wV2FDt/rhV8P8KQEvbXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681274; c=relaxed/simple; bh=5MCWOALGSLukXzxUZIQR/W2l1RUpj6rB3lK4EWLeszc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JY9u9NeEPdGX0yBKHShfaHuZQQZXm2H8ZAN00Ov7VJ1WF47MQb16yz8rTSOsj+dbHvggBjjxOMIE4RKJKf32fJZxgwHTnMQKWQtpqCcvVeJV7Dzz5KucQ9y/Wn46zyIraIfSmmwCRxzjJ57hh6laLDYLLlWURTnH9Fkca8OzbCQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=UTfK2JQz; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="UTfK2JQz" Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 514E1rUE006925; Tue, 4 Feb 2025 10:00:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=eEdP1 pbOrQQx/KKRb4w9vCmvJ8dASGnyuZv7Wg7oWYU=; b=UTfK2JQzEcbr+D5ADPXFi m1QALTbqWTh35X07yrFWsKTeXRzHmfdtTum10ZA1kC5A7nt05ZU6mN+t1jU3rvKF BoOa2HOASosjfpymzjQ3PmD/voWhq+bprvjnaXxhO0NShkxFPmVSZud5Ah1wcRAp Zr7hWQgB/oDAF2PxFX9kFYMsen8TB1N8xSQStN97lSiDk+zJhGCKT6gqj/uxqK4T PhBIF2Vmmvyoih1dhPM/hHM4bhQP4RiIdTYMgO/pyPXs5iaurAKbWayydugw+53I eh+vbBZ/+N+f174FXaAcKTfzcWmhqEXL1wJtSb9qXzS+3O78kmV5KtWnQ4qMBHFC A== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 44kma3g89b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Feb 2025 10:00:55 -0500 (EST) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 514F0s2O020850 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Feb 2025 10:00:54 -0500 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 4 Feb 2025 10:00:54 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 4 Feb 2025 10:00:54 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 4 Feb 2025 10:00:54 -0500 Received: from work.ad.analog.com (HYB-hERzalRezfV.ad.analog.com [10.65.205.9]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 514F0fdr005432; Tue, 4 Feb 2025 10:00:43 -0500 From: Marcelo Schmitt To: , CC: , , , , , , , Subject: [PATCH v4 1/3] Documentation: ABI: IIO: Add filter_type documentation Date: Tue, 4 Feb 2025 12:00:39 -0300 Message-ID: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Authority-Analysis: v=2.4 cv=Df7tqutW c=1 sm=1 tr=0 ts=67a22ba8 cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=T2h4t0Lz3GQA:10 a=gAnH3GRIAAAA:8 a=IpJZQVW2AAAA:8 a=VwQbUJbxAAAA:8 a=5Wjybu8Z64oMUeRhUkIA:9 a=oVHKYsEdi7-vN-J5QA_j:22 a=IawgGOuG5U0WyFbmm1f5:22 X-Proofpoint-GUID: bxWUQR8GvJ-wXWPvO-OFtSTIK6T7cvS7 X-Proofpoint-ORIG-GUID: bxWUQR8GvJ-wXWPvO-OFtSTIK6T7cvS7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-04_07,2025-02-04_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 suspectscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502040117 Content-Type: text/plain; charset="utf-8" A previous patch added documentation for filter_type_available attributes. However, the description for the value attribute (filter_type) was missing. Add documentation for filter_type sysfs ABI. Fixes: 01bb12922b60 ("Documentation: ABI: added filter mode doc in sysfs-bu= s-iio") Signed-off-by: Marcelo Schmitt Reviewed-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index d97c35057a03..ff9cc09360dc 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -2300,6 +2300,14 @@ Description: * "sinc3+pf3" - Sinc3 + device specific Post Filter 3. * "sinc3+pf4" - Sinc3 + device specific Post Filter 4. =20 +What: /sys/bus/iio/devices/iio:deviceX/filter_type +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_filter_type +KernelVersion: 6.1 +Contact: linux-iio@vger.kernel.org +Description: + Specifies which filter type apply to the channel. The possible + values are given by the filter_type_available attribute. + What: /sys/.../events/in_proximity_thresh_either_runningperiod KernelVersion: 6.6 Contact: linux-iio@vger.kernel.org --=20 2.47.2 From nobody Sun Dec 14 13:52:32 2025 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A09C42147E9; Tue, 4 Feb 2025 15:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681292; cv=none; b=TnFtFnxuMTFDZOwqWS9Y70+XTCzhEqLcoPyC/6lbE/k13ZOt/cchcSnlMUlOwaFOJnGP6O+0ED4DoKadEMWHnbjjs4Xh3xWGIZqjNgar36MZ/v1sTGqlmJFbIuyIbXwJBD6+ZE65bH1cXrtRuhoSBFZUuRubRqlzKyGkYgz0T20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681292; c=relaxed/simple; bh=9sxbJdxubH8PKeJUumaTFMB3vg2RZVnrkW6XnlLhRmI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tAht5AyykKET0nwCrJVd2Kh0gNHr8RckGm1HGsuMqQvw/4+WBZ0SDqi0q2+rgV/iCdsduAzaVoi7lcDsDOzw7kMU3f6rjvqvRQN4bIMkb50KxWW1AomrfhA8CED/b1ksaFLcJ8kkI27J2gRAVPcLQ5F1zasvVCDscZ8Lv9bnsNU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=PS1qSbFR; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="PS1qSbFR" Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 514E1u97006966; Tue, 4 Feb 2025 10:01:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=AAEdC bK3F/uGLacxNioJGlCxuiBgiEh5Aq6j43SGgPQ=; b=PS1qSbFRHlM5UZEiI+Ngi C1OWJewk0sJdRsQA2xA8MWZSSM68s3AS7MLX9HMruGZk7eQVR2odDUQeZ4N2OYtz 7LPuWw+x9+vASIIDzUO9oFU8JPNAeX1yDhOr0YZVEcNWcJkRDPNNL43Xx9hiBqJO vBkqIyFLKIgSzqnLtQp0hEBJgbTbq/BkOJTe41VWHz8IOp8Om4urL+G288jS+0fW sEUS63fKwazDlaMundqvNzhQv/4RGYaKqDO+50iYo0NnRLLh7ne3ddaDu/XiG7MA KuHtw64KYdLSGI3q7LrBbH/HhKvf0pW4p2l96Fhr3Xi2XlwMOvxOPC0bm0jT7vew A== Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 44kma3g8cg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Feb 2025 10:01:15 -0500 (EST) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 514F1EYI020918 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Feb 2025 10:01:14 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 4 Feb 2025 10:01:14 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 4 Feb 2025 10:01:14 -0500 Received: from work.ad.analog.com (HYB-hERzalRezfV.ad.analog.com [10.65.205.9]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 514F0xFq005447; Tue, 4 Feb 2025 10:01:01 -0500 From: Marcelo Schmitt To: , CC: , , , , , , , Subject: [PATCH v4 2/3] Documentation: ABI: IIO: Re-add sysfs-bus-iio-adc-ad4130 Date: Tue, 4 Feb 2025 12:00:57 -0300 Message-ID: X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Authority-Analysis: v=2.4 cv=Df7tqutW c=1 sm=1 tr=0 ts=67a22bbb cx=c_pps a=PpDZqlmH/M8setHirZLBMw==:117 a=PpDZqlmH/M8setHirZLBMw==:17 a=T2h4t0Lz3GQA:10 a=gAnH3GRIAAAA:8 a=IpJZQVW2AAAA:8 a=VwQbUJbxAAAA:8 a=40AwTsln27GJRGhbypkA:9 a=oVHKYsEdi7-vN-J5QA_j:22 a=IawgGOuG5U0WyFbmm1f5:22 X-Proofpoint-GUID: dAe7hpmx5onnio9NJOhpq_gXH-XGLUah X-Proofpoint-ORIG-GUID: dAe7hpmx5onnio9NJOhpq_gXH-XGLUah X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-04_07,2025-02-04_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 mlxscore=0 clxscore=1015 suspectscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502040117 Content-Type: text/plain; charset="utf-8" The ad4130 driver exports in_voltageY-voltageZ_filter_mode and in_voltage-voltage_filter_mode_available attributes to user space. A previous patch merged the documentation for those attributes with the documentation for filter_type/filter_type_available into sysfs-bus-iio. Filter mode and filter type refer to the same feature which is the digital filter applied over ADC samples. However, since datasheets use the term `filter type` and ad4130 driver is the only one using filter_mode, deprecate the filter_mode ABI in favor of filter_type and keep the docs separate to avoid confusion and intricate attribute descriptions. Fixes: 01bb12922b60 ("Documentation: ABI: added filter mode doc in sysfs-bu= s-iio") Signed-off-by: Marcelo Schmitt Reviewed-by: David Lechner --- Documentation/ABI/testing/sysfs-bus-iio | 2 +- .../ABI/testing/sysfs-bus-iio-adc-ad4130 | 20 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/te= sting/sysfs-bus-iio index ff9cc09360dc..2f8898c1a664 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio @@ -2277,7 +2277,7 @@ Description: representing the sensor unique ID number. =20 What: /sys/bus/iio/devices/iio:deviceX/filter_type_available -What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_mode_ava= ilable +What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_type_ava= ilable KernelVersion: 6.1 Contact: linux-iio@vger.kernel.org Description: diff --git a/Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 b/Documenta= tion/ABI/testing/sysfs-bus-iio-adc-ad4130 new file mode 100644 index 000000000000..d3fad27421d6 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 @@ -0,0 +1,20 @@ +What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_mode_ava= ilable +KernelVersion: 6.2 +Contact: linux-iio@vger.kernel.org +Description: + Reading returns a list with the possible filter modes. + + This ABI is only kept for backwards compatibility and the values + returned are identical to filter_type_available attribute + documented in Documentation/ABI/testing/sysfs-bus-iio. Please, + use filter_type_available like ABI to provide filter options for + new drivers. + +What: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_filter_mode +KernelVersion: 6.2 +Contact: linux-iio@vger.kernel.org +Description: + This ABI is only kept for backwards compatibility and the values + returned are identical to in_voltageY-voltageZ_filter_type + attribute documented in Documentation/ABI/testing/sysfs-bus-iio. + Please, use in_voltageY-voltageZ_filter_type for new drivers. diff --git a/MAINTAINERS b/MAINTAINERS index 98a3c1e46311..28dbbf6d6efa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1279,6 +1279,7 @@ M: Cosmin Tanislav L: linux-iio@vger.kernel.org S: Supported W: https://ez.analog.com/linux-software-drivers +F: Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 F: Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml F: drivers/iio/adc/ad4130.c =20 --=20 2.47.2 From nobody Sun Dec 14 13:52:32 2025 Received: from mx0b-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D827213E68; Tue, 4 Feb 2025 15:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.135.77 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681309; cv=none; b=mr5+xy4IHDsZdj6/I8LmKJSstDUagwxEGPP/7nMwQehyYbSa9EwMBe2rXPypiKgtran69z3iYvu+/se6+fW6E5v/dG/ax6XPiCjyX6pksXP+2xi+Wv2xhIfpKaB9uftBYTczzwgEOK5E52Fn3LzHcYxZnjSHz8VS8yvEHBWsDoo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738681309; c=relaxed/simple; bh=x3yEUC+RmVWJLbZOlLBYK0kokB4Yzn+rQ34l8kZ3Xys=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pLZZo022wHiGAxrfeS2p+R5Sf4F9Lq+hbgWWrtdvtUctHoxeAMsxMIg+exRqxBzI5xtx0SC5+Qgy5reOqjm5iRA3Pe6Jojg/TBkdAQHqp0Kghjah8byy+PjLiDSKiOahUvLs1Vi4IiZfyqHJVauAuEy0N9O/fw2+n1jgEO+FS4A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com; spf=pass smtp.mailfrom=analog.com; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b=QKel9wgf; arc=none smtp.client-ip=148.163.135.77 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=analog.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=analog.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=analog.com header.i=@analog.com header.b="QKel9wgf" Received: from pps.filterd (m0375855.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 514DnmAv015368; Tue, 4 Feb 2025 10:01:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=DKIM; bh=/WOhz vvjdQo/qdHgPT0VOoUryjJVcFSqB7tg2jGp1JA=; b=QKel9wgfhJI2hDtaV1cds 60dts1omATG5y8BMn3L3HJQ09GE08hSeGiDLKPlLVGq2yXvOB/DeMP2+QRU6I0YE S1DCXgBcTaAw+dr/EmfuHBy97E+sEHeMgBWYREydarUfiUPc38WRQHsZVzqrPnou Lp6NlgDzeeciv9z4DonF6aZX1TKQ0SSwdaJgK9+2ozBoWh1kLzJI/Th3ILJTYwp0 ZF5irNf2GL/ZeysVGkwI8rh7sNH2FQs4SRxs7+oW6b9RByk3iPg1WrQVUutrnepH SxKRjUur1TvHDZk/YS+MGjUingYSd3TrNWk1zOOXgHwKLx6x8n80DrirNDaqHLAA Q== Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0b-00128a01.pphosted.com (PPS) with ESMTPS id 44km4e8ac0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Feb 2025 10:01:32 -0500 (EST) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 514F1Vsi044436 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Feb 2025 10:01:31 -0500 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 4 Feb 2025 10:01:31 -0500 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB5.ad.analog.com (10.64.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 4 Feb 2025 10:01:31 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 4 Feb 2025 10:01:31 -0500 Received: from work.ad.analog.com (HYB-hERzalRezfV.ad.analog.com [10.65.205.9]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 514F1GXc005482; Tue, 4 Feb 2025 10:01:18 -0500 From: Marcelo Schmitt To: , CC: , , , , , , , Subject: [PATCH v4 3/3] iio: adc: ad4130: Add filter_type attributes Date: Tue, 4 Feb 2025 12:01:14 -0300 Message-ID: <61a87b288552cad9e925a9af4eb33022d14a4617.1738680728.git.marcelo.schmitt@analog.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: abtoN37_1Jljfze8CgxfB0Yx7fvQu2R9 X-Authority-Analysis: v=2.4 cv=O4XDvA9W c=1 sm=1 tr=0 ts=67a22bcc cx=c_pps a=3WNzaoukacrqR9RwcOSAdA==:117 a=3WNzaoukacrqR9RwcOSAdA==:17 a=T2h4t0Lz3GQA:10 a=IpJZQVW2AAAA:8 a=gAnH3GRIAAAA:8 a=Byu_INIfeIXNPjAbFHIA:9 a=IawgGOuG5U0WyFbmm1f5:22 a=oVHKYsEdi7-vN-J5QA_j:22 X-Proofpoint-GUID: abtoN37_1Jljfze8CgxfB0Yx7fvQu2R9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-02-04_07,2025-02-04_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 clxscore=1015 mlxlogscore=907 suspectscore=0 spamscore=0 adultscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.19.0-2501170000 definitions=main-2502040117 Content-Type: text/plain; charset="utf-8" Make filter control also available through filter_type attributes which are now standardized in main IIO ABI documentation. Suggested-by: David Lechner Signed-off-by: Marcelo Schmitt Reviewed-by: David Lechner --- drivers/iio/adc/ad4130.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/adc/ad4130.c b/drivers/iio/adc/ad4130.c index de32cc9d18c5..acc241cc0a7a 100644 --- a/drivers/iio/adc/ad4130.c +++ b/drivers/iio/adc/ad4130.c @@ -939,9 +939,16 @@ static const struct iio_enum ad4130_filter_mode_enum = =3D { }; =20 static const struct iio_chan_spec_ext_info ad4130_filter_mode_ext_info[] = =3D { + /* + * Intentional duplication of attributes to keep backwards compatibility + * while standardizing over the main IIO ABI for digital filtering. + */ IIO_ENUM("filter_mode", IIO_SEPARATE, &ad4130_filter_mode_enum), IIO_ENUM_AVAILABLE("filter_mode", IIO_SHARED_BY_TYPE, &ad4130_filter_mode_enum), + IIO_ENUM("filter_type", IIO_SEPARATE, &ad4130_filter_mode_enum), + IIO_ENUM_AVAILABLE("filter_type", IIO_SHARED_BY_TYPE, + &ad4130_filter_mode_enum), { } }; =20 --=20 2.47.2