sf: Use const for the stage name

This is not updated at runtime so should be marked const. Update the code
accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Simon Glass 2021-09-19 15:49:33 -06:00
parent 6b03448713
commit ad4e010054

View File

@ -394,7 +394,7 @@ enum {
STAGE_COUNT,
};
static char *stage_name[STAGE_COUNT] = {
static const char *stage_name[STAGE_COUNT] = {
"erase",
"check",
"write",