mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 05:31:17 -04:00
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>
This commit is contained in:
committed by
Jonathan Cameron
parent
c7eb65a376
commit
0c5d8af2a5
@@ -939,9 +939,16 @@ static const struct iio_enum ad4130_filter_mode_enum = {
|
||||
};
|
||||
|
||||
static const struct iio_chan_spec_ext_info ad4130_filter_mode_ext_info[] = {
|
||||
/*
|
||||
* 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),
|
||||
{ }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user