diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 10:21:21 +0200 |
commit | f6c802a726aea43a2937763f13560c1fd170fae6 (patch) | |
tree | 7a5026123ebe12da9ef83b8c85c1d993c043c41a /drivers/nfc/pn533 | |
parent | nfc: constify nfc_hci_gate (diff) | |
download | linux-f6c802a726aea43a2937763f13560c1fd170fae6.tar.xz linux-f6c802a726aea43a2937763f13560c1fd170fae6.zip |
nfc: constify nfc_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_ops, 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/pn533')
-rw-r--r-- | drivers/nfc/pn533/pn533.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/pn533/pn533.c b/drivers/nfc/pn533/pn533.c index cd64bfe20402..2f3f3fe9a0ba 100644 --- a/drivers/nfc/pn533/pn533.c +++ b/drivers/nfc/pn533/pn533.c @@ -2623,7 +2623,7 @@ static int pn533_dev_down(struct nfc_dev *nfc_dev) return ret; } -static struct nfc_ops pn533_nfc_ops = { +static const struct nfc_ops pn533_nfc_ops = { .dev_up = pn533_dev_up, .dev_down = pn533_dev_down, .dep_link_up = pn533_dep_link_up, |