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>
This commit is contained in:

zatwierdzone przez
Len Brown

rodzic
8e0ee43bc2
commit
7faa144a51
@@ -93,6 +93,8 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(voltage_avg),
|
||||
POWER_SUPPLY_ATTR(current_now),
|
||||
POWER_SUPPLY_ATTR(current_avg),
|
||||
POWER_SUPPLY_ATTR(power_now),
|
||||
POWER_SUPPLY_ATTR(power_avg),
|
||||
POWER_SUPPLY_ATTR(charge_full_design),
|
||||
POWER_SUPPLY_ATTR(charge_empty_design),
|
||||
POWER_SUPPLY_ATTR(charge_full),
|
||||
|
Reference in New Issue
Block a user