docs: ABI: sysfs-class-power: Documented cycle_count property
PATCH v4 1/1 docs: ABI: sysfs-class-power: Documented cycle_count property
Commit c955fe8e0bdd ("POWER: Add support for cycle_count") added a POWER_SUPPLY_PROP_CYCLE_COUNT "cycle_count" property to the set of standard power-supply properties, but this was never documented, document it now.
---
Changes in v4:
- Document that some drivers, such as e.g. the often used drivers/acpi/battery.c driver may return 0 when cycle_count information is not available
Changes in v3 (aka the really really typo free version)
- Fix typo in "cycle_count" in Subject
Changes in v2:
- s/Possitive/Positive/
--- Documentation/ABI/testing/sysfs-class-power | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Documentation/ABI/testing/sysfs-class-power +13 -0
@@ -480,6 +480,19 @@ Description: Valid values: Represented in microvolts +What: /sys/class/power_supply/<supply_name>/cycle_count +Date: January 2010 +Contact: [email protected] +Description: + Reports the number of full charge + discharge cycles the + battery has undergone. + + Access: Read + + Valid values: + Integer > 0: representing full cycles + Integer = 0: cycle_count info is not available + **USB Properties** What: /sys/class/power_supply/<supply_name>/input_current_limit
Signature · 1 line
2.31.1
Hi,
Quoted 14 lines · Hans de Goede
Commit
c955fe8e0bdd("POWER: Add support forcycle_count") added aPOWER_SUPPLY_PROP_CYCLE_COUNT"cycle_count" property to the set of standard power-supply properties, but this was never documented, document it now.Reported-by Bastien Nocera <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
Changes in v4:
- Document that some drivers, such as e.g. the often useddrivers/acpi/battery.cdriver may return 0 whencycle_countinformation is not available
Quoted 6 lines
Changes in v3 (aka the really really typo free version)
- Fix typo in "cycle_count" in SubjectChanges in v2:
- s/Possitive/Positive/
---
Thanks, queued.
-- Sebastian
Quoted 30 lines
Documentation/ABI/testing/sysfs-class-power | 13 +++++++++++++ 1 file changed, 13 insertions(+)Documentation/ABI/testing/sysfs-class-power +13
-0@@ -480,6 +480,19 @@ Description: Valid values: Represented in microvolts +What: /sys/class/power_supply/<supply_name>/cycle_count +Date: January 2010 +Contact: [email protected] +Description: + Reports the number of full charge + discharge cycles the + battery has undergone. + + Access: Read + + Valid values: + Integer > 0: representing full cycles + Integer = 0: cycle_count info is not available + **USB Properties** What: /sys/class/power_supply/<supply_name>/input_current_limitSignature · 1 line
2.31.1