shell: Modify subcommands to use SHELL_STATIC_SUBCMD_SET_CREATE

It is planned to deprecate SHELL_CREATE_STATIC_SUBCMD_SET macro
which is replaced by SHELL_STATIC_SUBCMD_SET_CREATE.

Additionally, removed irrelevant comments about alphabetical
ordering which is no longer needed.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2019-02-13 14:53:29 +01:00 committed by Anas Nashif
commit 3605e48c44
29 changed files with 106 additions and 153 deletions

View file

@ -38,10 +38,9 @@ static int cmd_get_device_id(const struct shell *shell, size_t argc, char **argv
return 0;
}
SHELL_CREATE_STATIC_SUBCMD_SET(sub_hwinfo) {
/* Alphabetically sorted. */
SHELL_STATIC_SUBCMD_SET_CREATE(sub_hwinfo,
SHELL_CMD_ARG(devid, NULL, "Show device id", cmd_get_device_id, 1, 0),
SHELL_SUBCMD_SET_END /* Array terminated. */
};
);
SHELL_CMD_ARG_REGISTER(hwinfo, &sub_hwinfo, "HWINFO commands", NULL, 2, 0);