summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2016-10-03 04:10:50 -0400
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-11-22 06:07:03 -0500
commited25e9cae1ab8e84556c9413fd5de0a9da8f3657 (patch)
tree2312d00eefea114d535fef7ea135bc5354af3e44
parentaa73684cdeb3a8a9f38e6a240b177c1fe04178b5 (diff)
cleanup LED documentation and make it match reality
sysfs-class-led fails to mention some important details. Also fix led vs LED and english. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
-rw-r--r--Documentation/ABI/testing/sysfs-class-led14
1 files changed, 11 insertions, 3 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-led b/Documentation/ABI/testing/sysfs-class-led
index 86ace287d48b..491cdeedc195 100644
--- a/Documentation/ABI/testing/sysfs-class-led
+++ b/Documentation/ABI/testing/sysfs-class-led
@@ -4,16 +4,24 @@ KernelVersion: 2.6.17
4Contact: Richard Purdie <rpurdie@rpsys.net> 4Contact: Richard Purdie <rpurdie@rpsys.net>
5Description: 5Description:
6 Set the brightness of the LED. Most LEDs don't 6 Set the brightness of the LED. Most LEDs don't
7 have hardware brightness support so will just be turned on for 7 have hardware brightness support, so will just be turned on for
8 non-zero brightness settings. The value is between 0 and 8 non-zero brightness settings. The value is between 0 and
9 /sys/class/leds/<led>/max_brightness. 9 /sys/class/leds/<led>/max_brightness.
10 10
11 Writing 0 to this file clears active trigger.
12
13 Writing non-zero to this file while trigger is active changes the
14 top brightness trigger is going to use.
15
11What: /sys/class/leds/<led>/max_brightness 16What: /sys/class/leds/<led>/max_brightness
12Date: March 2006 17Date: March 2006
13KernelVersion: 2.6.17 18KernelVersion: 2.6.17
14Contact: Richard Purdie <rpurdie@rpsys.net> 19Contact: Richard Purdie <rpurdie@rpsys.net>
15Description: 20Description:
16 Maximum brightness level for this led, default is 255 (LED_FULL). 21 Maximum brightness level for this LED, default is 255 (LED_FULL).
22
23 If the LED does not support different brightness levels, this
24 should be 1.
17 25
18What: /sys/class/leds/<led>/trigger 26What: /sys/class/leds/<led>/trigger
19Date: March 2006 27Date: March 2006
@@ -21,7 +29,7 @@ KernelVersion: 2.6.17
21Contact: Richard Purdie <rpurdie@rpsys.net> 29Contact: Richard Purdie <rpurdie@rpsys.net>
22Description: 30Description:
23 Set the trigger for this LED. A trigger is a kernel based source 31 Set the trigger for this LED. A trigger is a kernel based source
24 of led events. 32 of LED events.
25 You can change triggers in a similar manner to the way an IO 33 You can change triggers in a similar manner to the way an IO
26 scheduler is chosen. Trigger specific parameters can appear in 34 scheduler is chosen. Trigger specific parameters can appear in
27 /sys/class/leds/<led> once a given trigger is selected. For 35 /sys/class/leds/<led> once a given trigger is selected. For