staging: iio: ad7780: update voltage on read
authorRenato Lui Geh <renatogeh@gmail.com>
Mon, 5 Nov 2018 19:14:58 +0000 (17:14 -0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Nov 2018 18:32:31 +0000 (18:32 +0000)
commit336650c785b62c3bea7c8cf6061c933a90241f67
tree87dcb07f12647cb8093d0328a88c227013d0d026
parent121354b2eceb2669ebdffa76b105ad6c03413966
staging: iio: ad7780: update voltage on read

The ad7780 driver previously did not read the correct device output, as
it read an outdated value set at initialization. It now updates its
voltage on read.

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