staging: iio: adt7316: use correct variable in DAC_internal_Vref read
authorJeremy Fertic <jeremyfertic@gmail.com>
Wed, 12 Dec 2018 00:54:59 +0000 (17:54 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Dec 2018 14:05:55 +0000 (14:05 +0000)
commit5107d16e0aa4f56925c1627830c0e901782350df
treec7e9b2a183c09247226f5b4b3add7bf386446e94
parent85a1c11913312132d0800ca2c1c42a011f96ea92
staging: iio: adt7316: use correct variable in DAC_internal_Vref read

The dac internal vref settings are part of the ldac config register rather
than the dac config register. Change the variable being used so the read
returns the correct result.

Whilst a fix, it is for a driver in heavy churn so do not backport
to stable without taking considerable care and testing.

Signed-off-by: Jeremy Fertic <jeremyfertic@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/addac/adt7316.c