summaryrefslogtreecommitdiff
path: root/cmd/mtd.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-12-04 00:54:21 +0300
committerTom Rini <trini@konsulko.com>2019-01-15 23:28:54 +0300
commitc0cf06e523cbe50dbf38d5c81d0595f5b8517f4a (patch)
tree954992ff69b3a97ff6061a1b6ac927c570303393 /cmd/mtd.c
parent80a48dd47e3bf3ede676fae5a630cb6c80de3e69 (diff)
downloadu-boot-c0cf06e523cbe50dbf38d5c81d0595f5b8517f4a.tar.xz
command: commands: Add macros to declare commands with subcmds
Most cmd/xxx.c source files expose several commands through a single entry point. Some of them are doing the sub-command parsing manually in their do_<cmd>() function, others are declaring a table of sub-commands and then use find_cmd_tbl() to delegate the request to the sub command handler. In either case, the amount of code to do that is not negligible and repetitive, not to mention that almost no commands are implementing the auto-completion hook, which means most u-boot commands lack auto-completion. Provide several macros to easily define commands exposing sub-commands. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/mtd.c')
0 files changed, 0 insertions, 0 deletions