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 \ #define RTC_GET_HELP \
("Get current time (UTC)\n" \ SHELL_HELP("Get current time (UTC)", \
"Usage: rtc get <device>") "<device>")
#define RTC_SET_HELP \ #define RTC_SET_HELP \
("Set UTC time\n" \ SHELL_HELP("Set UTC time", \
"Usage: rtc set <device> <YYYY-MM-DDThh:mm:ss> | <YYYY-MM-DD> | <hh:mm:ss>") "<device> <YYYY-MM-DDThh:mm:ss> | <YYYY-MM-DD> | <hh:mm:ss>")
SHELL_DYNAMIC_CMD_CREATE(dsub_device_name, device_name_get); SHELL_DYNAMIC_CMD_CREATE(dsub_device_name, device_name_get);