]> git.baikalelectronics.ru Git - kernel.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)
commitbfc0253105d9d732e1085c6c88da6f4a024a883b
tree77fb8aa6d6ff51a41c1e70c8d5e875cb8c26e06f
parent54a25f9cbbd82be1b3fa2feb840cb40396327e02
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