linux-kernel-test/drivers/power
Andres Salomon 75d8807962 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>
2008-05-19 01:44:36 +04:00
..
apm_power.c apm_power: check I.intval for zero value, we use it as the divisor 2008-02-02 02:44:34 +03:00
ds2760_battery.c power: replace remaining __FUNCTION__ occurrences 2008-04-29 08:05:58 -07:00
Kconfig Don't compile the PMU power driver on 64-bit PowerPC 2007-07-23 12:42:45 +01:00
Makefile [BATTERY] One Laptop Per Child power/battery driver 2007-07-10 11:28:22 +01:00
olpc_battery.c power_supply: fix up CHARGE_COUNTER output to be more precise 2008-05-19 01:44:36 +04:00
pda_power.c pda_power: add init and exit function callbacks 2008-05-03 03:39:55 +04:00
pmu_battery.c PMU battery: filenames in sysfs with spaces 2008-05-03 03:40:42 +04:00
power_supply_core.c power: replace remaining __FUNCTION__ occurrences 2008-04-29 08:05:58 -07:00
power_supply_leds.c power: replace remaining __FUNCTION__ occurrences 2008-04-29 08:05:58 -07:00
power_supply_sysfs.c power_supply: add CHARGE_COUNTER property and olpc_battery support for it 2008-05-13 12:27:11 +04:00
power_supply.h Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00