ACPI: Fix ACPI battery regression introduced by commit 558073
commitaaad077638be1a25871bcae5e43952d6b63abfca
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 5 Dec 2008 00:07:51 +0000 (5 01:07 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Dec 2008 05:43:16 +0000 (4 21:43 -0800)
tree874d52d1b88a04f1a12ea1552a8be0ff82ff4e74
parent4857339d7c01cd81ce8872da2d1f9183b07b1c87
ACPI: Fix ACPI battery regression introduced by commit 558073

Commit 558073dd56707864f09d563b64e7c37c021e89d2 ("ACPI: battery: Convert
discharge energy rate to current properly") caused the battery subsystem
to report wrong values of the remaining time on battery power and the
time until fully charged on Toshiba Portege R500 (and presumably on
other boxes too).

Fix the issue by correcting the conversion from mW to mA.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/acpi/battery.c