[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220406152247.386267-3-benni@stuerz.xyz>
Date: Wed, 6 Apr 2022 17:22:47 +0200
From: Benjamin Stürz <benni@...erz.xyz>
To: kvalo@...nel.org
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Benjamin Stürz <benni@...erz.xyz>
Subject: [PATCH v4 2/2] ray_cs: Make card_status[] const
Make the const because it shouldn't be modified.
Signed-off-by: Benjamin Stürz <benni@...erz.xyz>
---
drivers/net/wireless/ray_cs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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",
--
2.35.1
Powered by blists - more mailing lists