]> git.karo-electronics.de Git - linux-beck.git/commit
max17042_battery: Bugfix of incorrect voltage register value interpretation
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 17 Aug 2011 01:18:34 +0000 (10:18 +0900)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 19 Aug 2011 17:03:35 +0000 (21:03 +0400)
commitcf7a8c03db792894f436db5f3ffc44d947b9b068
tree182005726b4a00b42e0e574673c89598c6f8241a
parent91d8b0d6f81d2946962ee559090a34834dfd467b
max17042_battery: Bugfix of incorrect voltage register value interpretation

The calculation had error in getting voltage values from
MAX17042 registers. The least bit denotes 78.125uV (625/8).

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/max17042_battery.c