summaryrefslogtreecommitdiffstats
path: root/drivers/uio/uio_cif.c
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2010-10-22 10:02:06 +0800
committerLen Brown <len.brown@intel.com>2010-10-22 01:28:07 -0400
commit557d58687dcdee6bc00c1a8f1fd4e0eac8fefce9 (patch)
tree6a73fcf98ee0c78520f38aba6d053875bd2a3dc0 /drivers/uio/uio_cif.c
parent03e7c3432d40d067476eaf49ede29128b637998f (diff)
downloadop-kernel-dev-557d58687dcdee6bc00c1a8f1fd4e0eac8fefce9.zip
op-kernel-dev-557d58687dcdee6bc00c1a8f1fd4e0eac8fefce9.tar.gz
ACPI battery: support percentage battery remaining capacity
According to the ACPI spec, some kinds of primary battery can report percentage battery remaining capacity directly to OS. In this case, it reports the LastFullChargedCapacity == 100, BatteryPresentRate = 0xFFFFFFFF, and BatteryRemaingCapacity a percentage value, which actually means RemainingBatteryPercentage. Now we found some battery follows this rule even if it's a rechargeable. https://bugzilla.kernel.org/show_bug.cgi?id=15979 Handle these batteries correctly in ACPI battery driver so that they won't break userspace. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/uio/uio_cif.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud