diff mbox series

ABI: testing: sysfs-class-power: Document absence of "present" property

Message ID 20230220131018.1708991-1-hadess@hadess.net
State Accepted
Commit f0cf05759497dbc90303adcbdf3d13a54bdaf97b
Headers show
Series ABI: testing: sysfs-class-power: Document absence of "present" property | expand

Commit Message

Bastien Nocera Feb. 20, 2023, 1:10 p.m. UTC
Document how the absence of the "present" property in the sysfs
power_supply class should be handled.

Link: https://gitlab.freedesktop.org/upower/upower/-/merge_requests/173
Cc: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Bastien Nocera <hadess@hadess.net>
---
 Documentation/ABI/testing/sysfs-class-power | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Sebastian Reichel Feb. 25, 2023, 12:21 a.m. UTC | #1
Hi,

On Mon, Feb 20, 2023 at 02:10:18PM +0100, Bastien Nocera wrote:
> Document how the absence of the "present" property in the sysfs
> power_supply class should be handled.
> 
> Link: https://gitlab.freedesktop.org/upower/upower/-/merge_requests/173
> Cc: Mario Limonciello <mario.limonciello@amd.com>
> Signed-off-by: Bastien Nocera <hadess@hadess.net>
> ---

Thanks, queued for v6.3.

-- Sebastian

>  Documentation/ABI/testing/sysfs-class-power | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power
> index e434fc523291..7c81f0a25a48 100644
> --- a/Documentation/ABI/testing/sysfs-class-power
> +++ b/Documentation/ABI/testing/sysfs-class-power
> @@ -437,7 +437,8 @@ What:		/sys/class/power_supply/<supply_name>/present
>  Date:		May 2007
>  Contact:	linux-pm@vger.kernel.org
>  Description:
> -		Reports whether a battery is present or not in the system.
> +		Reports whether a battery is present or not in the system. If the
> +		property does not exist, the battery is considered to be present.
>  
>  		Access: Read
>  
> -- 
> 2.39.1
>
diff mbox series

Patch

diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power
index e434fc523291..7c81f0a25a48 100644
--- a/Documentation/ABI/testing/sysfs-class-power
+++ b/Documentation/ABI/testing/sysfs-class-power
@@ -437,7 +437,8 @@  What:		/sys/class/power_supply/<supply_name>/present
 Date:		May 2007
 Contact:	linux-pm@vger.kernel.org
 Description:
-		Reports whether a battery is present or not in the system.
+		Reports whether a battery is present or not in the system. If the
+		property does not exist, the battery is considered to be present.
 
 		Access: Read