From: Krzysztof Kozlowski Date: Fri, 24 Jul 2020 07:40:26 +0000 (+0200) Subject: memory: brcmstb_dpfe: Constify the contents of string X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a6ca67a838826ebabe9f1c1434140459928ee5b5;p=linux.git memory: brcmstb_dpfe: Constify the contents of string The string itself can be made const for safety. Signed-off-by: Krzysztof Kozlowski Acked-by: Florian Fainelli Acked-by: Markus Mayer --- diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 82b415be18d1f..5942380f343b6 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -188,7 +188,7 @@ struct brcmstb_dpfe_priv { struct mutex lock; }; -static const char *error_text[] = { +static const char * const error_text[] = { "Success", "Header code incorrect", "Unknown command or argument", "Incorrect checksum", "Malformed command", "Timed out", };