]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Fix ACPI battery regression introduced by commit 558073
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 5 Dec 2008 00:07:51 +0000 (01:07 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Dec 2008 05:43:16 +0000 (21:43 -0800)
commitc3344807b0a027da9d205c1ba85fc7c0a01b550f
tree874d52d1b88a04f1a12ea1552a8be0ff82ff4e74
parent496f6567bde9a713c0503fbae44fbed56bec0f20
ACPI: Fix ACPI battery regression introduced by commit 558073

Commit d1346c5941d841b7c676bd2f6fcfd406c6e4b879 ("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