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

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad4130: Add filter_type attributes

Make filter control also available through filter_type attributes which are
now standardized in main IIO ABI documentation.

Suggested-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/61a87b288552cad9e925a9af4eb33022d14a4617.1738680728.git.marcelo.schmitt@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Marcelo Schmitt and committed by
Jonathan Cameron
0c5d8af2 c7eb65a3

+7
+7
drivers/iio/adc/ad4130.c
··· 939 939 }; 940 940 941 941 static const struct iio_chan_spec_ext_info ad4130_filter_mode_ext_info[] = { 942 + /* 943 + * Intentional duplication of attributes to keep backwards compatibility 944 + * while standardizing over the main IIO ABI for digital filtering. 945 + */ 942 946 IIO_ENUM("filter_mode", IIO_SEPARATE, &ad4130_filter_mode_enum), 943 947 IIO_ENUM_AVAILABLE("filter_mode", IIO_SHARED_BY_TYPE, 948 + &ad4130_filter_mode_enum), 949 + IIO_ENUM("filter_type", IIO_SEPARATE, &ad4130_filter_mode_enum), 950 + IIO_ENUM_AVAILABLE("filter_type", IIO_SHARED_BY_TYPE, 944 951 &ad4130_filter_mode_enum), 945 952 { } 946 953 };