diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:47:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 09:21:21 +0100 |
commit | 7a5e98daf6bdba5822aa274f8555199361060658 (patch) | |
tree | 0622155e537a6520daa59b636eae9c3efcdd9903 /drivers/nfc/pn544/i2c.c | |
parent | cb8caa3c6c04c18027258ab34e09bcf87e726f22 (diff) | |
download | linux-7a5e98daf6bdba5822aa274f8555199361060658.tar.gz linux-7a5e98daf6bdba5822aa274f8555199361060658.tar.bz2 linux-7a5e98daf6bdba5822aa274f8555199361060658.zip |
nfc: constify nfc_phy_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_phy_ops (consisting of function pointers), so make it a pointer
to const for correctness and safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/pn544/i2c.c')
-rw-r--r-- | drivers/nfc/pn544/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c index de59e439c369..37d26f01986b 100644 --- a/drivers/nfc/pn544/i2c.c +++ b/drivers/nfc/pn544/i2c.c @@ -515,7 +515,7 @@ static irqreturn_t pn544_hci_i2c_irq_thread_fn(int irq, void *phy_id) return IRQ_HANDLED; } -static struct nfc_phy_ops i2c_phy_ops = { +static const struct nfc_phy_ops i2c_phy_ops = { .write = pn544_hci_i2c_write, .enable = pn544_hci_i2c_enable, .disable = pn544_hci_i2c_disable, |