]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
leds: Adjust documentation of brightness sysfs node
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 13 May 2026 22:05:24 +0000 (00:05 +0200)
committerLee Jones <lee@kernel.org>
Wed, 17 Jun 2026 10:29:02 +0000 (11:29 +0100)
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@linux.intel.com>
Link: https://patch.msgid.link/20260513220620.369825-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/ABI/testing/sysfs-class-led

index 0313b82644f244ddd046c7b892831368691108c3..d4c918cc11a12729215cee418fbb293ee6e6fc6f 100644 (file)
@@ -22,8 +22,8 @@ Description:
                  For additional details please refer to
                  Documentation/leds/leds-class-multicolor.rst.
 
-               The value is between 0 and
-               /sys/class/leds/<led>/max_brightness.
+               The value is between 0 and /sys/class/leds/<led>/max_brightness
+               and is represented by as a decimal.
 
                Writing 0 to this file clears active trigger.