]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ACPI: battery: add power_{now,avg} properties to power_class
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Sat, 28 Mar 2009 02:23:52 +0000 (22:23 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 28 Mar 2009 02:23:52 +0000 (22:23 -0400)
commit7faa144a518c456e2057918f030f50100144ccc6
tree4f1a9406419ba486386b460164e3afb270a0beb5
parent8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84
ACPI: battery: add power_{now,avg} properties to power_class

ACPI has smart batteries, which work in units of energy and measure
rate of (dis)charge as power, thus it is not appropriate to export it
as a current_now. Current_now will still be exported to allow
for userland applications to match.

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c
drivers/acpi/sbs.c
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h