Skip to content

Commit

Permalink
nfc: st21nfca: constify file-scope arrays
Browse files Browse the repository at this point in the history
Driver only reads len_seq and wait_tab variables.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
krzk authored and davem330 committed Jul 25, 2021
1 parent 7a5e98d commit 0f20ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/nfc/st21nfca/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 { \
Expand Down

0 comments on commit 0f20ae9

Please sign in to comment.