Thread (55 messages) 55 messages, 2 authors, 2020-08-17
STALE2133d REVIEWED: 5 (5M)

[PATCH v2 17/29] memory: brcmstb_dpfe: Constify the contents of string

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2020-07-24 07:42:36
Also in: linux-mediatek, linux-omap, linux-samsung-soc, linux-tegra, lkml
Subsystem: broadcom stb dpfe driver, memory controller drivers, the rest · Maintainers: Markus Mayer, Krzysztof Kozlowski, Linus Torvalds

The string itself can be made const for safety.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
---
 drivers/memory/brcmstb_dpfe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c
index 82b415be18d1..5942380f343b 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",
 };
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help