]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:ad7793: Fix temperature scale and offset
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 10 Aug 2012 16:36:00 +0000 (17:36 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 16 Aug 2012 19:24:34 +0000 (20:24 +0100)
commit276332a014673b6bc323642c70232b5959bdc0eb
tree616e32f056310a660430609eab899a95cbeacb6a
parentd43e26921733b48db4c432a4205bbd967dc0358a
staging:iio:ad7793: Fix temperature scale and offset

The temperature channel uses the internal 1.17V reference with 0.81 mv/C. The
reported temperature is in Kevlin, so we need to add the Kelvin to Celcius
offset when reporting the offset for the temperature channel.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7793.c