mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
POWER: Add support for cycle_count
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
7b3bcc4a1a
commit
c955fe8e0b
2 changed files with 2 additions and 0 deletions
|
@ -99,6 +99,7 @@ static struct device_attribute power_supply_attrs[] = {
|
|||
POWER_SUPPLY_ATTR(present),
|
||||
POWER_SUPPLY_ATTR(online),
|
||||
POWER_SUPPLY_ATTR(technology),
|
||||
POWER_SUPPLY_ATTR(cycle_count),
|
||||
POWER_SUPPLY_ATTR(voltage_max),
|
||||
POWER_SUPPLY_ATTR(voltage_min),
|
||||
POWER_SUPPLY_ATTR(voltage_max_design),
|
||||
|
|
|
@ -82,6 +82,7 @@ enum power_supply_property {
|
|||
POWER_SUPPLY_PROP_PRESENT,
|
||||
POWER_SUPPLY_PROP_ONLINE,
|
||||
POWER_SUPPLY_PROP_TECHNOLOGY,
|
||||
POWER_SUPPLY_PROP_CYCLE_COUNT,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MIN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN,
|
||||
|
|
Loading…
Reference in a new issue