]> git.baikalelectronics.ru Git - uboot.git/commit
command: Use a constant pointer for the help
authorSimon Glass <sjg@chromium.org>
Sun, 19 Sep 2021 21:49:32 +0000 (15:49 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 28 Nov 2021 23:51:51 +0000 (16:51 -0700)
commitd0593acd69ce3ade7f5098f10f019a0d5497f89f
tree4c260e7ce1f80944bc416059c070097825447c27
parentc8fc1633b394b249aedc034540f5da2e4fd0552c
command: Use a constant pointer for the help

This text should never change during execution, so it makes sense to
use a const char * so that it can be declared as const in the code.
Update struct cmd_tbl with a const char * pointer for 'help'.

We cannot make usage const because of the bmode command, used on mx53ppd
for example.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/command.h