diff options
author | Pavel Machek <pavel@ucw.cz> | 2016-10-03 04:10:50 -0400 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-11-22 06:07:03 -0500 |
commit | ed25e9cae1ab8e84556c9413fd5de0a9da8f3657 (patch) | |
tree | 2312d00eefea114d535fef7ea135bc5354af3e44 | |
parent | aa73684cdeb3a8a9f38e6a240b177c1fe04178b5 (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-led | 14 |
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 | |||
4 | Contact: Richard Purdie <rpurdie@rpsys.net> | 4 | Contact: Richard Purdie <rpurdie@rpsys.net> |
5 | Description: | 5 | Description: |
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 | |||
11 | What: /sys/class/leds/<led>/max_brightness | 16 | What: /sys/class/leds/<led>/max_brightness |
12 | Date: March 2006 | 17 | Date: March 2006 |
13 | KernelVersion: 2.6.17 | 18 | KernelVersion: 2.6.17 |
14 | Contact: Richard Purdie <rpurdie@rpsys.net> | 19 | Contact: Richard Purdie <rpurdie@rpsys.net> |
15 | Description: | 20 | Description: |
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 | ||
18 | What: /sys/class/leds/<led>/trigger | 26 | What: /sys/class/leds/<led>/trigger |
19 | Date: March 2006 | 27 | Date: March 2006 |
@@ -21,7 +29,7 @@ KernelVersion: 2.6.17 | |||
21 | Contact: Richard Purdie <rpurdie@rpsys.net> | 29 | Contact: Richard Purdie <rpurdie@rpsys.net> |
22 | Description: | 30 | Description: |
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 |