]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54a25f9cbbd82be1b3fa2feb840cb40396327e02
tree9fc8d7ae4713cc566ada7c6bcc75c84c15824c1c
parent4c70db4ae9678c884aa803017966d682331c71c0
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