From 2967d83ab18923ee418d9137259fe1e6ba3509a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Fri, 13 Jun 2025 22:58:20 +0200 Subject: [PATCH] drivers: serial: uart_shell: adopt SHELL_HELP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adopt SHELL_HELP macro for UART shell Signed-off-by: Benjamin Cabé --- drivers/serial/uart_shell.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/serial/uart_shell.c b/drivers/serial/uart_shell.c index 13c0fca3904..63640d90b50 100644 --- a/drivers/serial/uart_shell.c +++ b/drivers/serial/uart_shell.c @@ -170,20 +170,20 @@ SHELL_DYNAMIC_CMD_CREATE(dsub_device_name, device_name_get); SHELL_STATIC_SUBCMD_SET_CREATE(sub_uart_cmds, SHELL_CMD_ARG(write, &dsub_device_name, - "Write data to the UART device\n" - "Usage: write ", + SHELL_HELP("Write data to the UART device", + " "), cmd_uart_write, 3, 0), SHELL_CMD_ARG(read, &dsub_device_name, - "read data from the UART device\n" - "Usage: read ", + SHELL_HELP("Read data from the UART device", + " "), cmd_uart_read, 3, 0), SHELL_CMD_ARG(baudrate, &dsub_device_name, - "Configure UART device baudrate\n" - "Usage: baudrate ", + SHELL_HELP("Configure the UART device baudrate", + " "), cmd_uart_baudrate, 3, 0), SHELL_CMD_ARG(fc, &dsub_device_name, - "Configure UART device flow control\n" - "Usage: fc ", + SHELL_HELP("Configure the UART device flow control", + " "), cmd_uart_flow_control, 3, 0), SHELL_SUBCMD_SET_END /* Array terminated. */ );