iio:adc:vf610-adc: Add temperature sensor support
authorSanchayan Maity <maitysanchayan@gmail.com>
Fri, 19 Sep 2014 12:58:00 +0000 (13:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Sep 2014 12:25:56 +0000 (13:25 +0100)
commit774623ca41280f74f499416fbbba3b1afbdd910e
tree7805edf5c6f3f4abdde520c64f9410537746e8c5
parentd6be7a02d9cf817d3e3d19167d87e52260620ecd
iio:adc:vf610-adc: Add temperature sensor support

Vybrid ADC peripheral includes a temperature sensor
which is connected to channel number 26. This patch
adds support for the sensor. The raw value is read
and the temperature calculated in milli degree Celsius,
which is returned using IIO_CHAN_INFO_PROCESSED option.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/vf610_adc.c