Files
u-boot/common
Boris Brezillon 80a48dd47e common: command: Rework the 'cmd is repeatable' logic
The repeatable property is currently attached to the main command and
sub-commands have no way to change the repeatable value (the
->repeatable field in sub-command entries is ignored).

Replace the ->repeatable field by an extended ->cmd() hook (called
->cmd_rep()) which takes a new int pointer to store the repeatable cap
of the command being executed.

With this trick, we can let sub-commands decide whether they are
repeatable or not.

We also patch mmc and dtimg who are testing the ->repeatable field
directly (they now use cmd_is_repeatable() instead), and fix the help
entry manually since it doesn't use the U_BOOT_CMD() macro.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
2019-01-15 15:28:54 -05:00
..
2019-01-14 17:42:32 -05:00
2018-09-10 20:20:34 -04:00
2018-12-03 10:44:10 -05:00
2019-01-01 14:12:18 +01:00
2016-02-06 12:00:59 +01:00
2016-05-02 18:37:09 -04:00
2018-12-06 23:26:30 -05:00
2018-12-14 17:59:10 +01:00
2018-06-05 20:19:08 -04:00
2017-08-16 08:30:24 -04:00