Thread (14 messages) 14 messages, 2 authors, 2021-07-25
STALE1812d

[PATCH 06/12] nfc: st21nfca: constify file-scope arrays

From: Krzysztof Kozlowski <hidden>
Date: 2021-07-24 21:49:44
Also in: linux-wireless, lkml, netdev
Subsystem: nfc subsystem, the rest · Maintainers: David Heidelberg, Linus Torvalds

Driver only reads len_seq and wait_tab variables.

Signed-off-by: Krzysztof Kozlowski <redacted>
---
 drivers/nfc/st21nfca/i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c
index 9dc9693a7356..1b44a37a71aa 100644
--- a/drivers/nfc/st21nfca/i2c.c
+++ b/drivers/nfc/st21nfca/i2c.c
@@ -76,8 +76,8 @@ struct st21nfca_i2c_phy {
 	struct mutex phy_lock;
 };
 
-static u8 len_seq[] = { 16, 24, 12, 29 };
-static u16 wait_tab[] = { 2, 3, 5, 15, 20, 40};
+static const u8 len_seq[] = { 16, 24, 12, 29 };
+static const u16 wait_tab[] = { 2, 3, 5, 15, 20, 40};
 
 #define I2C_DUMP_SKB(info, skb)					\
 do {								\
-- 
2.27.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help