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:
parent
e7f58da491
commit
c8349073d5
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue