Skip to content

Commit ea29907

Browse files
kartbennashif
authored andcommitted
input: adopt SHELL_HELP
Adopt SHELL_HELP macro for input shell Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent bced298 commit ea29907

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

subsys/input/input_utils.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -272,20 +272,17 @@ SHELL_STATIC_SUBCMD_SET_CREATE(
272272
sub_input_cmds,
273273
#ifdef CONFIG_INPUT_EVENT_DUMP
274274
SHELL_CMD_ARG(dump, NULL,
275-
"Enable event dumping\n"
276-
"usage: dump <on|off>",
275+
SHELL_HELP("Enable event dumping", "<on|off>"),
277276
input_cmd_dump, 2, 0),
278277
#endif /* CONFIG_INPUT_EVENT_DUMP */
279278
#ifdef CONFIG_INPUT_SHELL_KBD_MATRIX_STATE
280279
SHELL_CMD_ARG(kbd_matrix_state_dump, &dsub_device_name,
281-
"Print the state of a keyboard matrix device each time a "
282-
"key is pressed or released\n"
283-
"usage: kbd_matrix_state_dump <device>|off",
280+
SHELL_HELP("Print the state of a keyboard matrix device each time a "
281+
"key is pressed or released", "<device>|off"),
284282
input_cmd_kbd_matrix_state_dump, 2, 0),
285283
#endif /* CONFIG_INPUT_SHELL_KBD_MATRIX_STATE */
286284
SHELL_CMD_ARG(report, NULL,
287-
"Trigger an input report event\n"
288-
"usage: report <type> <code> <value> [<sync>]",
285+
SHELL_HELP("Trigger an input report event", "<type> <code> <value> [sync]"),
289286
input_cmd_report, 4, 1),
290287
SHELL_SUBCMD_SET_END);
291288

0 commit comments

Comments
 (0)