]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ad7768-1: add low pass -3dB cutoff attribute
authorJonathan Santos <Jonathan.Santos@analog.com>
Wed, 11 Jun 2025 11:52:03 +0000 (08:52 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:24 +0000 (15:36 +0100)
commit00a468c9312645c61ebe3c272a4cbf3dc2f82187
tree1fb8dd90478e00043da9533e31a34dae0e1e0acc
parent5eef68d672b777e930df0fef1a970e9aacbce343
iio: adc: ad7768-1: add low pass -3dB cutoff attribute

Ad7768-1 has a different -3db frequency multiplier depending on
the filter type configured. The cutoff frequency also varies according
to the current ODR.

Add a readonly low pass -3dB frequency cutoff attribute to clarify to
the user which bandwidth is being allowed depending on the filter
configurations.

Reviewed-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
Link: https://patch.msgid.link/804d66f1858014d7278aec3344d81c223661e878.1749569957.git.Jonathan.Santos@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7768-1.c