Commit bafb51a
ykushcmd: Add string support to ykushcmd command
By default ykushcmd command supports option to [on, off, cycle] whole
ykush yepkit.
> ykushcmd -u a # 'a' stands for all ports
> ykushcmd -d a # 'a' stands for all ports
In current build only int is supported for port number, changing it
to string allows to control power on all ports with one command instead
of 3 if there are 3 ports.
Signed-off-by: Redzynia, MateuszX <mateuszx.redzynia@intel.com>
[bst: adjusted docs accordingly]
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent d02396e commit bafb51a
2 files changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
| 315 | + | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
0 commit comments