diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2009-03-27 22:23:52 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-27 22:23:52 -0400 |
commit | 7faa144a518c456e2057918f030f50100144ccc6 (patch) | |
tree | 4f1a9406419ba486386b460164e3afb270a0beb5 /drivers/power | |
parent | 8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84 (diff) |
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index ac01e06817fb..da73591017f9 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c | |||
@@ -93,6 +93,8 @@ static struct device_attribute power_supply_attrs[] = { | |||
93 | POWER_SUPPLY_ATTR(voltage_avg), | 93 | POWER_SUPPLY_ATTR(voltage_avg), |
94 | POWER_SUPPLY_ATTR(current_now), | 94 | POWER_SUPPLY_ATTR(current_now), |
95 | POWER_SUPPLY_ATTR(current_avg), | 95 | POWER_SUPPLY_ATTR(current_avg), |
96 | POWER_SUPPLY_ATTR(power_now), | ||
97 | POWER_SUPPLY_ATTR(power_avg), | ||
96 | POWER_SUPPLY_ATTR(charge_full_design), | 98 | POWER_SUPPLY_ATTR(charge_full_design), |
97 | POWER_SUPPLY_ATTR(charge_empty_design), | 99 | POWER_SUPPLY_ATTR(charge_empty_design), |
98 | POWER_SUPPLY_ATTR(charge_full), | 100 | POWER_SUPPLY_ATTR(charge_full), |