]> git.karo-electronics.de Git - linux-beck.git/commit
iio: adc: twl4030_madc: Fix calculation of the temperature sense current
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 28 May 2015 19:50:18 +0000 (21:50 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 7 Jun 2015 16:24:44 +0000 (17:24 +0100)
commit0cbb39f1432096cf00eca21f2d10f6d2057c26ba
treee232c76f952716a7f018cc18f2310b350fd97338
parentae6d9ce05691bf79694074db7c7da980080548af
iio: adc: twl4030_madc: Fix calculation of the temperature sense current

The bit mask to read the setting of the constant current source
for measuring the NTC voltage was the wrong one. Since default
value is initialized to the lowest level (000 = 10uA) the difference
was probably never noticed in practice.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/twl4030-madc.c