drivers: rtc: adopt SHELL_HELP

Adopt SHELL_HELP macro for rtc shell

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-11 21:25:12 +02:00 committed by Daniel DeGrasse
commit c8349073d5

View file

@ -233,12 +233,12 @@ static void device_name_get(size_t idx, struct shell_static_entry *entry)
}
#define RTC_GET_HELP \
("Get current time (UTC)\n" \
"Usage: rtc get <device>")
SHELL_HELP("Get current time (UTC)", \
"<device>")
#define RTC_SET_HELP \
("Set UTC time\n" \
"Usage: rtc set <device> <YYYY-MM-DDThh:mm:ss> | <YYYY-MM-DD> | <hh:mm:ss>")
SHELL_HELP("Set UTC time", \
"<device> <YYYY-MM-DDThh:mm:ss> | <YYYY-MM-DD> | <hh:mm:ss>")
SHELL_DYNAMIC_CMD_CREATE(dsub_device_name, device_name_get);