treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / ABI / testing / sysfs-class-led-driver-el15203000
blobf520ece9b64c555a3757771e3ad2deda0aabb04f
1 What:           /sys/class/leds/<led>/hw_pattern
2 Date:           September 2019
3 KernelVersion:  5.5
4 Description:
5                 Specify a hardware pattern for the EL15203000 LED.
6                 The LEDs board supports only predefined patterns by firmware
7                 for specific LEDs.
9                 Breathing mode for Screen frame light tube:
10                 "0 4000 1 4000"
12                     ^
13                     |
14                 Max-|     ---
15                     |    /   \
16                     |   /     \
17                     |  /       \     /
18                     | /         \   /
19                 Min-|-           ---
20                     |
21                     0------4------8--> time (sec)
23                 Cascade mode for Pipe LED:
24                 "1 800 2 800 4 800 8 800 16 800"
26                       ^
27                       |
28                 0 On -|----+                   +----+                   +---
29                       |    |                   |    |                   |
30                   Off-|    +-------------------+    +-------------------+
31                       |
32                 1 On -|    +----+                   +----+
33                       |    |    |                   |    |
34                   Off |----+    +-------------------+    +------------------
35                       |
36                 2 On -|         +----+                   +----+
37                       |         |    |                   |    |
38                   Off-|---------+    +-------------------+    +-------------
39                       |
40                 3 On -|              +----+                   +----+
41                       |              |    |                   |    |
42                   Off-|--------------+    +-------------------+    +--------
43                       |
44                 4 On -|                   +----+                   +----+
45                       |                   |    |                   |    |
46                   Off-|-------------------+    +-------------------+    +---
47                       |
48                       0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec)
50                 Inverted cascade mode for Pipe LED:
51                 "30 800 29 800 27 800 23 800 15 800"
53                       ^
54                       |
55                 0 On -|    +-------------------+    +-------------------+
56                       |    |                   |    |                   |
57                   Off-|----+                   +----+                   +---
58                       |
59                 1 On -|----+    +-------------------+    +------------------
60                       |    |    |                   |    |
61                   Off |    +----+                   +----+
62                       |
63                 2 On -|---------+    +-------------------+    +-------------
64                       |         |    |                   |    |
65                   Off-|         +----+                   +----+
66                       |
67                 3 On -|--------------+    +-------------------+    +--------
68                       |              |    |                   |    |
69                   Off-|              +----+                   +----+
70                       |
71                 4 On -|-------------------+    +-------------------+    +---
72                       |                   |    |                   |    |
73                   Off-|                   +----+                   +----+
74                       |
75                       0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec)
77                 Bounce mode for Pipe LED:
78                 "1 800 2 800 4 800 8 800 16 800 16 800 8 800 4 800 2 800 1 800"
80                       ^
81                       |
82                 0 On -|----+                                       +--------
83                       |    |                                       |
84                   Off-|    +---------------------------------------+
85                       |
86                 1 On -|    +----+                             +----+
87                       |    |    |                             |    |
88                   Off |----+    +-----------------------------+    +--------
89                       |
90                 2 On -|         +----+                   +----+
91                       |         |    |                   |    |
92                   Off-|---------+    +-------------------+    +-------------
93                       |
94                 3 On -|              +----+         +----+
95                       |              |    |         |    |
96                   Off-|--------------+    +---------+    +------------------
97                       |
98                 4 On -|                   +---------+
99                       |                   |         |
100                   Off-|-------------------+         +-----------------------
101                       |
102                       0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec)
104                 Inverted bounce mode for Pipe LED:
105                 "30 800 29 800 27 800 23 800 15 800 15 800 23 800 27 800 29 800 30 800"
107                       ^
108                       |
109                 0 On -|    +---------------------------------------+
110                       |    |                                       |
111                   Off-|----+                                       +--------
112                       |
113                 1 On -|----+    +-----------------------------+    +--------
114                       |    |    |                             |    |
115                   Off |    +----+                             +----+
116                       |
117                 2 On -|---------+    +-------------------+    +-------------
118                       |         |    |                   |    |
119                   Off-|         +----+                   +----+
120                       |
121                 3 On -|--------------+    +---------+    +------------------
122                       |              |    |         |    |
123                   Off-|              +----+         +----+
124                       |
125                 4 On -|-------------------+         +-----------------------
126                       |                   |         |
127                   Off-|                   +---------+
128                       |
129                       0---0.8--1.6--2.4--3.2---4---4.8--5.6--6.4--7.2---8--> time (sec)
131 What:           /sys/class/leds/<led>/repeat
132 Date:           September 2019
133 KernelVersion:  5.5
134 Description:
135                 EL15203000 supports only indefinitely patterns,
136                 so this file should always store -1.
138                 For more info, please see:
139                 Documentation/ABI/testing/sysfs-class-led-trigger-pattern