Re: [PATCH v1 1/1] leds: Adjust documentation of brightness sysfs node

From: Lee Jones

Date: Thu Mar 19 2026 - 11:07:20 EST


On Tue, 10 Mar 2026, Andy Shevchenko wrote:

> Adjust documentation of brightness sysfs node about accepted value range.
> The code accepts only decimal values. We may not relax that due to different
> readings for, e.g., octal 0100, which becomes 64 instead of currently parsed
> 100.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> Documentation/ABI/testing/sysfs-class-led | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/ABI/testing/sysfs-class-led b/Documentation/ABI/testing/sysfs-class-led
> index 0313b82644f2..39ac8453e670 100644
> --- a/Documentation/ABI/testing/sysfs-class-led
> +++ b/Documentation/ABI/testing/sysfs-class-led
> @@ -22,7 +22,7 @@ Description:
> For additional details please refer to
> Documentation/leds/leds-class-multicolor.rst.
>
> - The value is between 0 and
> + The decimal value is between 0 and

How about?

The value is between 0 and /sys/class/leds/<led>/max_brightness and is
represented by as a decimal.

> /sys/class/leds/<led>/max_brightness.
>
> Writing 0 to this file clears active trigger.
> --
> 2.50.1
>
>

--
Lee Jones [李琼斯]