Files
u-boot-bpi-r3/cmd
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
..
2017-02-08 15:56:28 -05:00
2018-08-11 09:16:08 +02:00
2017-07-03 17:35:28 -04:00
2018-12-04 19:45:57 +01:00
2018-05-23 17:30:05 -04:00
2018-12-04 19:44:57 +01:00
2018-09-25 21:49:18 -04:00
2018-09-23 21:55:30 +02:00
2018-09-11 11:00:54 +02:00
2019-01-15 15:28:43 -05:00
2018-10-02 22:12:32 +05:30
2017-08-16 08:30:24 -04:00
2019-01-15 15:28:43 -05:00
2016-10-06 20:57:42 -04:00
2018-09-28 18:27:33 +02:00
2018-11-16 16:51:56 -05:00
2019-01-15 15:28:44 -05:00
2018-05-08 09:07:35 -04:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2018-09-28 20:22:36 -04:00
2018-07-02 14:14:20 -05:00
2019-01-15 15:28:44 -05:00