iio: mxs-lradc: Fix temperature offset
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 7 Oct 2015 11:10:54 +0000 (13:10 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Oct 2015 14:02:02 +0000 (15:02 +0100)
commitb94e22805a2224061bb263a82b72e09544a5fbb3
tree54d1c2618d48a5d763da7d57cd34ab8e5690b9f9
parenteda7d0f38aaf50dbb2a2de15e8db386c4f6f65fc
iio: mxs-lradc: Fix temperature offset

0° Kelvin is actually −273.15°C, not -272.15°C. Fix the temperature offset.
Also improve the comment explaining the calculation.

Reported-by: Janusz Użycki <j.uzycki@elpromaelectronics.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Marek Vasut <marex@denx.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c