From: Andres Salomon Date: Wed, 14 May 2008 23:20:38 +0000 (-0700) Subject: power_supply: fix up CHARGE_COUNTER output to be more precise X-Git-Tag: v2.6.27-rc2~110^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75d8807962fc7529b4946e9ec92cae197be5a967;p=pandora-kernel.git power_supply: fix up CHARGE_COUNTER output to be more precise As Richard Smith pointed out, ACR * 6250 / 15 provides for less precision loss than ACR * 4167 / 10, _and_ it doesn't overflow. Switch to using that equation for CHARGE_COUNTER. Signed-off-by: Andres Salomon Cc: "Richard A. Smith" Signed-off-by: Andrew Morton Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed