staging: iio: ad7780: add gain reading to ad778x
authorRenato Lui Geh <renatogeh@gmail.com>
Sat, 16 Mar 2019 02:13:13 +0000 (23:13 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:03 +0000 (20:20 +0100)
commit0149ba2d5b6d6799e6aeb1ae25773008745c1c5a
tree9fc8d7ae4713cc566ada7c6bcc75c84c15824c1c
parentae9f86feb4294864cf7274acae6561ec4d95a7d0
staging: iio: ad7780: add gain reading to ad778x

This patch adds a new functionality of reading gain values from the
ad778x chips. This value is stored in the chip's state struct and is
updated whenever a read or write call is performed on the driver.

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