diff mbox series

[v4,2/2] ray_cs: Make card_status[] const

Message ID 20220406152247.386267-3-benni@stuerz.xyz (mailing list archive)
State Changes Requested
Delegated to: Kalle Valo
Headers show
Series wireless: ray_cs: Improve card_status[] | expand

Commit Message

Benjamin Stürz April 6, 2022, 3:22 p.m. UTC
Make the const because it shouldn't be modified.

Signed-off-by: Benjamin Stürz <benni@stuerz.xyz>
---
 drivers/net/wireless/ray_cs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c
index 3df795dc3d9f..07f36aaefbde 100644
--- a/drivers/net/wireless/ray_cs.c
+++ b/drivers/net/wireless/ray_cs.c
@@ -2528,7 +2528,7 @@  static void clear_interrupt(ray_dev_t *local)
 #ifdef CONFIG_PROC_FS
 #define MAXDATA (PAGE_SIZE - 80)
 
-static const char *card_status[] = {
+static const char * const card_status[] = {
 	[CARD_INSERTED]		= "Card inserted - uninitialized",
 	[CARD_AWAITING_PARAM]	= "Card not downloaded",
 	[CARD_DL_PARAM]		= "Waiting for download parameters",