]> git.baikalelectronics.ru Git - uboot.git/commitdiff
sf: Use const for the stage name
authorSimon Glass <sjg@chromium.org>
Sun, 19 Sep 2021 21:49:33 +0000 (15:49 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 28 Nov 2021 23:51:51 +0000 (16:51 -0700)
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>
cmd/sf.c

index eac27ed2d77d2bd2e702c73cab82c0f040751d0d..15361a4bddf9826d677481819ec98fcc96ba85c2 100644 (file)
--- a/cmd/sf.c
+++ b/cmd/sf.c
@@ -394,7 +394,7 @@ enum {
        STAGE_COUNT,
 };
 
-static char *stage_name[STAGE_COUNT] = {
+static const char *stage_name[STAGE_COUNT] = {
        "erase",
        "check",
        "write",