Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: ABI: IIO: Re-add sysfs-bus-iio-adc-ad4130

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-bus-iio")
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/c77b2d65f1115c1c394582f55944d6f685058f9c.1738680728.git.marcelo.schmitt@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Marcelo Schmitt and committed by
Jonathan Cameron
c7eb65a3 fdaa9b76

+22 -1
+1 -1
Documentation/ABI/testing/sysfs-bus-iio
··· 2268 2268 representing the sensor unique ID number. 2269 2269 2270 2270 What: /sys/bus/iio/devices/iio:deviceX/filter_type_available 2271 - What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_mode_available 2271 + What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_type_available 2272 2272 KernelVersion: 6.1 2273 2273 Contact: linux-iio@vger.kernel.org 2274 2274 Description:
+20
Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130
··· 1 + What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_filter_mode_available 2 + KernelVersion: 6.2 3 + Contact: linux-iio@vger.kernel.org 4 + Description: 5 + Reading returns a list with the possible filter modes. 6 + 7 + This ABI is only kept for backwards compatibility and the values 8 + returned are identical to filter_type_available attribute 9 + documented in Documentation/ABI/testing/sysfs-bus-iio. Please, 10 + use filter_type_available like ABI to provide filter options for 11 + new drivers. 12 + 13 + What: /sys/bus/iio/devices/iio:deviceX/in_voltageY-voltageZ_filter_mode 14 + KernelVersion: 6.2 15 + Contact: linux-iio@vger.kernel.org 16 + Description: 17 + This ABI is only kept for backwards compatibility and the values 18 + returned are identical to in_voltageY-voltageZ_filter_type 19 + attribute documented in Documentation/ABI/testing/sysfs-bus-iio. 20 + Please, use in_voltageY-voltageZ_filter_type for new drivers.
+1
MAINTAINERS
··· 1311 1311 L: linux-iio@vger.kernel.org 1312 1312 S: Supported 1313 1313 W: https://ez.analog.com/linux-software-drivers 1314 + F: Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130 1314 1315 F: Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml 1315 1316 F: drivers/iio/adc/ad4130.c 1316 1317