linux/drivers/power
Daniel Mack b0525b48f0 ds2760_battery: Fix integer overflow for time_to_empty_now
On the device we're currently developing, battery sizes of ~2.8Ah and
current flow of ~600mA are typical.

With that values, the life_sec computation overflows due to the
multiplication by 3600.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Cc: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
2009-09-04 20:26:40 +04:00
..
apm_power.c Driver Core: add ability for class_for_each_device to start in middle of list 2008-07-21 21:54:47 -07:00
bq27x00_battery.c trivial: Fix misspelling of "Celsius". 2009-03-30 15:22:03 +02:00
da9030_battery.c da9030_battery: Fix race between event handler and monitor 2009-06-09 01:12:38 +04:00
ds2760_battery.c ds2760_battery: Fix integer overflow for time_to_empty_now 2009-09-04 20:26:40 +04:00
ds2782_battery.c Add ds2782 battery gas gauge driver 2009-07-01 02:36:58 +04:00
Kconfig Add ds2782 battery gas gauge driver 2009-07-01 02:36:58 +04:00
Makefile Add ds2782 battery gas gauge driver 2009-07-01 02:36:58 +04:00
max17040_battery.c Add MAX17040 Fuel Gauge driver 2009-06-09 00:53:21 +04:00
olpc_battery.c power_supply: Add a charge_type property, and use it for olpc driver 2009-07-02 18:14:37 +04:00
pcf50633-charger.c pcf50633_charger: Remove unused mbc_set_status function 2009-02-02 19:58:45 +03:00
pda_power.c pda_power: Add optional OTG transceiver and voltage regulator support 2009-02-02 20:15:47 +03:00
pmu_battery.c PMU battery: filenames in sysfs with spaces 2008-05-03 03:40:42 +04:00
power_supply_core.c power_supply: get_by_name and set_charged functionality 2009-07-30 17:49:15 +04: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 a charge_type property, and use it for olpc driver 2009-07-02 18:14:37 +04:00
power_supply.h
tosa_battery.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
wm97xx_battery.c wm97xx_battery: Convert to dev_pm_ops 2009-09-04 20:21:08 +04:00
wm8350_power.c wm8350_power: Implement charge type property 2009-07-14 18:05:56 +04:00