]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
docs: ABI: sysfs-class-power: Documented cycle_count property
authorHans de Goede <hdegoede@redhat.com>
Thu, 16 Sep 2021 12:53:21 +0000 (14:53 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 24 Sep 2021 21:37:08 +0000 (23:37 +0200)
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.

Link: https://gitlab.freedesktop.org/upower/upower/-/issues/152
Reported-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/ABI/testing/sysfs-class-power

index ca830c6cd8094b047522d6d672be73a7193c2826..f7904efc4cfa069622bff099b9806aa6920c198b 100644 (file)
@@ -480,6 +480,19 @@ Description:
 
                Valid values: Represented in microvolts
 
+What:          /sys/class/power_supply/<supply_name>/cycle_count
+Date:          January 2010
+Contact:       linux-pm@vger.kernel.org
+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