apm_power: fix obviously wrong logic for time reporting
authorAnton Vorontsov <cbou@mail.ru>
Thu, 4 Oct 2007 21:04:59 +0000 (01:04 +0400)
committerAnton Vorontsov <cbou@mail.ru>
Thu, 4 Oct 2007 21:04:59 +0000 (01:04 +0400)
commitcd1ebcc0ef620e8e7c5e399bf9e123135e4f24a4
tree644ce92be6c29ec341fc1f8e44d32ab18c1fda82
parent804b3f9a16e446cb023417faec58b6506c834052
apm_power: fix obviously wrong logic for time reporting

Prior to this patch, apm_power was unable to report "to empty"/"to full"
time for batteries that hardware-report these values, such as
Apple PMU batteries.

Signed-off-by: Anton Vorontsov <cbou@mail.ru>
drivers/power/apm_power.c