]> git.karo-electronics.de Git - mv-sheeva.git/commit
ACPI battery: update status upon sysfs query
authorZhang Rui <rui.zhang@intel.com>
Wed, 8 Dec 2010 02:40:49 +0000 (10:40 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 9 Dec 2010 20:34:57 +0000 (15:34 -0500)
commit3138b32d5e0998ba3cbd1c74bdc1887d74c5279b
treee9058af9058161a2e9e180b85b9dcbebd94f068b
parent3151dbb04ad5a5bd6358371c0bfb457216d00205
ACPI battery: update status upon sysfs query

Sometimes the Battery driver doesn't get notifications when it's
plugged/unplugged. And this results in the incorrect Battery
status reported by the power supply sysfs I/F.

Update Battery status first when querying from sysfs.
http://marc.info/?l=linux-acpi&m=128855015826728&w=2

Tested_by: Seblu <seblu@seblu.net>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c