From: Simon Glass Date: Sun, 19 Sep 2021 21:49:33 +0000 (-0600) Subject: sf: Use const for the stage name X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ad4e0100541eb8a19de00f56bda10be576a7cde6;p=u-boot.git 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 Reviewed-by: Jagan Teki Reviewed-by: Heinrich Schuchardt --- diff --git a/cmd/sf.c b/cmd/sf.c index eac27ed2d7..15361a4bdd 100644 --- 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",