]> git.baikalelectronics.ru Git - 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)
commitfee1c7bd472817248766c22f3babffbc01800981
tree4f1a9406419ba486386b460164e3afb270a0beb5
parentec3a5723f9b4608647ac8b9dc290288347f35042
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