git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.infradead.org/battery-2.6
[pandora-kernel.git]
/
drivers
/
power
/
ds2760_battery.c
diff --git
a/drivers/power/ds2760_battery.c
b/drivers/power/ds2760_battery.c
index
e7f8978
..
e534290
100644
(file)
--- a/
drivers/power/ds2760_battery.c
+++ b/
drivers/power/ds2760_battery.c
@@
-212,7
+212,7
@@
static int ds2760_battery_read_status(struct ds2760_device_info *di)
if (di->rem_capacity > 100)
di->rem_capacity = 100;
- if (di->current_uA
>=
100L)
+ if (di->current_uA
< -
100L)
di->life_sec = -((di->accum_current_uAh - di->empty_uAh) * 36L)
/ (di->current_uA / 100L);
else