Skip to content

Commit 1f70cb4

Browse files
Rafał Miłeckijanaszewski
authored andcommitted
Documentation: move oneshot trigger attributes documentation to ABI
Documentation of sysfs interface should be in ABI in the first place. This moves relevant part of documentation and mentions where to look for it. Fix trivial typos whilst we are at it. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
1 parent 1d1a77d commit 1f70cb4

3 files changed

Lines changed: 40 additions & 19 deletions

File tree

‎Documentation/ABI/testing/sysfs-class-led‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Description:
2424
of led events.
2525
You can change triggers in a similar manner to the way an IO
2626
scheduler is chosen. Trigger specific parameters can appear in
27-
/sys/class/leds/<led> once a given trigger is selected.
27+
/sys/class/leds/<led> once a given trigger is selected. For
28+
their documentation see sysfs-class-led-trigger-*.
2829

2930
What: /sys/class/leds/<led>/inverted
3031
Date: January 2011
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
What: /sys/class/leds/<led>/delay_on
2+
Date: Jun 2012
3+
KernelVersion: 3.6
4+
Contact: linux-leds@vger.kernel.org
5+
Description:
6+
Specifies for how many milliseconds the LED has to stay at
7+
LED_FULL brightness after it has been armed.
8+
Defaults to 100 ms.
9+
10+
What: /sys/class/leds/<led>/delay_off
11+
Date: Jun 2012
12+
KernelVersion: 3.6
13+
Contact: linux-leds@vger.kernel.org
14+
Description:
15+
Specifies for how many milliseconds the LED has to stay at
16+
LED_OFF brightness after it has been armed.
17+
Defaults to 100 ms.
18+
19+
What: /sys/class/leds/<led>/invert
20+
Date: Jun 2012
21+
KernelVersion: 3.6
22+
Contact: linux-leds@vger.kernel.org
23+
Description:
24+
Reverse the blink logic. If set to 0 (default) blink on for
25+
delay_on ms, then blink off for delay_off ms, leaving the LED
26+
normally off. If set to 1, blink off for delay_off ms, then
27+
blink on for delay_on ms, leaving the LED normally on.
28+
Setting this value also immediately changes the LED state.
29+
30+
What: /sys/class/leds/<led>/shot
31+
Date: Jun 2012
32+
KernelVersion: 3.6
33+
Contact: linux-leds@vger.kernel.org
34+
Description:
35+
Write any non-empty string to signal an events, this starts a
36+
blink sequence if not already running.

‎Documentation/leds/ledtrig-oneshot.txt‎

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,8 @@ below:
2121

2222
echo oneshot > trigger
2323

24-
This adds the following sysfs attributes to the LED:
25-
26-
delay_on - specifies for how many milliseconds the LED has to stay at
27-
LED_FULL brightness after it has been armed.
28-
Default to 100 ms.
29-
30-
delay_off - specifies for how many milliseconds the LED has to stay at
31-
LED_OFF brightness after it has been armed.
32-
Default to 100 ms.
33-
34-
invert - reverse the blink logic. If set to 0 (default) blink on for delay_on
35-
ms, then blink off for delay_off ms, leaving the LED normally off. If
36-
set to 1, blink off for delay_off ms, then blink on for delay_on ms,
37-
leaving the LED normally on.
38-
Setting this value also immediately change the LED state.
39-
40-
shot - write any non-empty string to signal an events, this starts a blink
41-
sequence if not already running.
24+
This adds sysfs attributes to the LED that are documented in:
25+
Documentation/ABI/testing/sysfs-class-led-trigger-oneshot
4226

4327
Example use-case: network devices, initialization:
4428

0 commit comments

Comments
 (0)