]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: iio: ad7780: add filter reading to ad778x
authorRenato Lui Geh <renatogeh@gmail.com>
Sat, 16 Mar 2019 02:13:42 +0000 (23:13 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:03 +0000 (20:20 +0100)
commit0ee6d5ebe13df2281c192c03adbd59c3e4f4e468
tree77fb8aa6d6ff51a41c1e70c8d5e875cb8c26e06f
parent0149ba2d5b6d6799e6aeb1ae25773008745c1c5a
staging: iio: ad7780: add filter reading to ad778x

This patch adds the new feature of reading the filter odr value for
ad778x chips. This value is stored in the chip's state struct whenever a
read or write call is performed on the chip's driver.

This feature requires sharing SAMP_FREQ. Since the ad717x does not have
a filter option, the driver only shares the relevant info mask for the
ad778x family.

Signed-off-by: Renato Lui Geh <renatogeh@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7780.c