]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4627f5567c37bcd4da12c889a4879b4288701b6a
tree7805edf5c6f3f4abdde520c64f9410537746e8c5
parent331ca2fe61cfcece36a930a1234ab2e5bcee0db2
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