git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83a8af0
)
ds2760_battery: Fix integer overflow for time_to_empty_now
author
Daniel Mack
<daniel@caiaq.de>
Fri, 24 Jul 2009 13:08:11 +0000
(15:08 +0200)
committer
Anton Vorontsov
<avorontsov@ru.mvista.com>
Fri, 4 Sep 2009 16:26:40 +0000
(20:26 +0400)
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>
drivers/power/ds2760_battery.c
patch
|
blob
|
history
diff --cc
drivers/power/ds2760_battery.c
Simple merge