]> rtime.felk.cvut.cz Git - linux-imx.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)
commit2a9e0662f6779d2074ecaa80ea5753d5f0cf1b93
tree616e32f056310a660430609eab899a95cbeacb6a
parent680f8ea0e85c5c3a7283be99435d6461e8725348
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