aboutsummaryrefslogtreecommitdiff
path: root/include/linux/hidraw.h
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2008-05-14 16:20:38 -0700
committerAnton Vorontsov <cbouatmailru@gmail.com>2008-05-19 01:44:36 +0400
commit75d8807962fc7529b4946e9ec92cae197be5a967 (patch)
tree9e5370ea7e1c727a18c4cb47c8403779456cbebe /include/linux/hidraw.h
parent8e552c36d90c03d2cabf5373788998966751b609 (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 <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 'include/linux/hidraw.h')
0 files changed, 0 insertions, 0 deletions