max17042_battery: Do not lose accuracy calculating current_now
authorPhilip Rakity <prakity@marvell.com>
Sat, 13 Aug 2011 04:19:57 +0000 (21:19 -0700)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 19 Aug 2011 17:03:34 +0000 (21:03 +0400)
PROP_CURRENT_NOW value is first divided then multiplied up
causing a lose of accuracy.  Use the same method as
PROP_CURRENT_AVG to do the calculation.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

No differences found