iio: adc: spmi-vadc: Update function for generic voltage conversion
authorRama Krishna Phani A <rphani@codeaurora.org>
Fri, 9 Dec 2016 15:01:49 +0000 (20:31 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sat, 10 Dec 2016 17:25:48 +0000 (17:25 +0000)
commitba71704af4a0aae0d9e5812dbdd7bca95e181b14
tree065b2c809d853636e838413c1f7ae6087c0c165b
parent29e90cd79f523e6cfbccf4d2b106bebaaac9cdcc
iio: adc: spmi-vadc: Update function for generic voltage conversion

Several channels are supported in ADC of PMIC which can be used to
measure voltage, temperature, current etc., Hardware provides
readings for all channels in adc code. That adc code needs to be
converted to voltage. Logic for conversion of adc code to voltage
is common for all ADC channels(voltage, temperature, current
.,etc). Implement separate function for generic conversion logic.

Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/qcom-spmi-vadc.c