Skip to content

Commit 3096ea0

Browse files
committed
watchdog: shell: adopt SHELL_HELP
have wdt shell commands use the new SHELL_HELP macro Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent b84294c commit 3096ea0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

drivers/watchdog/wdt_shell.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@
99
#include <zephyr/drivers/watchdog.h>
1010

1111
#define WDT_SETUP_HELP \
12-
"Set up watchdog instance. Syntax:\n" \
13-
"<device>"
12+
SHELL_HELP("Set up watchdog instance", "<device>")
1413

1514
#define WDT_DISABLE_HELP \
16-
"Disable watchdog instance. Syntax:\n" \
17-
"<device>"
15+
SHELL_HELP("Disable watchdog instance", "<device>")
1816

1917
#define WDT_TIMEOUT_HELP \
20-
"Install a new timeout. Syntax:\n" \
21-
"<device> <none|cpu|soc> <min_ms> <max_ms>"
18+
SHELL_HELP("Install a new timeout", "<device> <none|cpu|soc> <min_ms> <max_ms>")
2219

2320
#define WDT_FEED_HELP \
24-
"Feed specified watchdog timeout. Syntax:\n" \
25-
"<device> <channel_id>"
21+
SHELL_HELP("Feed specified watchdog timeout", "<device> <channel_id>")
2622

2723
static const char *const wdt_reset_name[] = {
2824
[WDT_FLAG_RESET_NONE] = "none",

0 commit comments

Comments
 (0)