diff options
author | Andres Salomon <[email protected]> | 2008-05-14 16:20:38 -0700 |
---|---|---|
committer | Anton Vorontsov <[email protected]> | 2008-05-19 01:44:36 +0400 |
commit | 75d8807962fc7529b4946e9ec92cae197be5a967 (patch) | |
tree | 9e5370ea7e1c727a18c4cb47c8403779456cbebe /net/unix/sysctl_net_unix.c | |
parent | 8e552c36d90c03d2cabf5373788998966751b609 (diff) |
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 <[email protected]>
Cc: "Richard A. Smith" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions