iio: adc: ad7124: add 3db filter
authorAlexandru Tachici <alexandru.tachici@analog.com>
Wed, 22 Jan 2020 08:54:14 +0000 (10:54 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 14 Feb 2020 12:08:22 +0000 (12:08 +0000)
commitcef2760954cf4f8228d14af9bd0b77a021979278
treeac59e0868aa7ad0509d88a164658e587525362f2
parentebf7a1126717a19fb638806d37dbdf27124a272d
iio: adc: ad7124: add 3db filter

This patch adds the LOW_PASS_FILTER_3DB_FREQUENCY attribute
in iio_chan_spec for each channel. The used filters are sinc3
or sinc4. The filter type with the highest output data rate
is used when setting a low pass frequency in the channel's sysfs.

Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c