watchdog: shell: adopt SHELL_HELP

have wdt shell commands use the new SHELL_HELP macro

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-04 23:04:21 +02:00 committed by Benjamin Cabé
commit 3096ea0216

View file

@ -9,20 +9,16 @@
#include <zephyr/drivers/watchdog.h>
#define WDT_SETUP_HELP \
"Set up watchdog instance. Syntax:\n" \
"<device>"
SHELL_HELP("Set up watchdog instance", "<device>")
#define WDT_DISABLE_HELP \
"Disable watchdog instance. Syntax:\n" \
"<device>"
SHELL_HELP("Disable watchdog instance", "<device>")
#define WDT_TIMEOUT_HELP \
"Install a new timeout. Syntax:\n" \
"<device> <none|cpu|soc> <min_ms> <max_ms>"
SHELL_HELP("Install a new timeout", "<device> <none|cpu|soc> <min_ms> <max_ms>")
#define WDT_FEED_HELP \
"Feed specified watchdog timeout. Syntax:\n" \
"<device> <channel_id>"
SHELL_HELP("Feed specified watchdog timeout", "<device> <channel_id>")
static const char *const wdt_reset_name[] = {
[WDT_FLAG_RESET_NONE] = "none",