diff options
author | Andres Salomon <dilinger@queued.net> | 2008-05-15 01:20:38 +0200 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2008-05-18 23:44:36 +0200 |
commit | 75d8807962fc7529b4946e9ec92cae197be5a967 (patch) | |
tree | 9e5370ea7e1c727a18c4cb47c8403779456cbebe /drivers/char | |
parent | power_supply: add CHARGE_COUNTER property and olpc_battery support for it (diff) | |
download | linux-75d8807962fc7529b4946e9ec92cae197be5a967.tar.xz linux-75d8807962fc7529b4946e9ec92cae197be5a967.zip |
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 <dilinger@debian.org>
Cc: "Richard A. Smith" <richard@laptop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions