From ea2990702f670ec05c5188c3822049b28ec0e6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Wed, 11 Jun 2025 20:37:34 +0200 Subject: [PATCH] input: adopt SHELL_HELP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adopt SHELL_HELP macro for input shell Signed-off-by: Benjamin Cabé --- subsys/input/input_utils.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/subsys/input/input_utils.c b/subsys/input/input_utils.c index 85125b45a8d..c11ec029005 100644 --- a/subsys/input/input_utils.c +++ b/subsys/input/input_utils.c @@ -272,20 +272,17 @@ SHELL_STATIC_SUBCMD_SET_CREATE( sub_input_cmds, #ifdef CONFIG_INPUT_EVENT_DUMP SHELL_CMD_ARG(dump, NULL, - "Enable event dumping\n" - "usage: dump ", + SHELL_HELP("Enable event dumping", ""), input_cmd_dump, 2, 0), #endif /* CONFIG_INPUT_EVENT_DUMP */ #ifdef CONFIG_INPUT_SHELL_KBD_MATRIX_STATE SHELL_CMD_ARG(kbd_matrix_state_dump, &dsub_device_name, - "Print the state of a keyboard matrix device each time a " - "key is pressed or released\n" - "usage: kbd_matrix_state_dump |off", + SHELL_HELP("Print the state of a keyboard matrix device each time a " + "key is pressed or released", "|off"), input_cmd_kbd_matrix_state_dump, 2, 0), #endif /* CONFIG_INPUT_SHELL_KBD_MATRIX_STATE */ SHELL_CMD_ARG(report, NULL, - "Trigger an input report event\n" - "usage: report []", + SHELL_HELP("Trigger an input report event", " [sync]"), input_cmd_report, 4, 1), SHELL_SUBCMD_SET_END);