diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 10:21:21 +0200 |
commit | 094c45c84d799fb0eb3617632097370843ba3678 (patch) | |
tree | 8a6bb9de6d351feb43ee270e2f04a3d94103b4ec /drivers/nfc/st21nfca | |
parent | nfc: constify nfc_ops (diff) | |
download | linux-094c45c84d799fb0eb3617632097370843ba3678.tar.xz linux-094c45c84d799fb0eb3617632097370843ba3678.zip |
nfc: constify nfc_hci_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_hci_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/st21nfca')
-rw-r--r-- | drivers/nfc/st21nfca/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st21nfca/core.c b/drivers/nfc/st21nfca/core.c index 675f8a342869..5e6c99fcfd27 100644 --- a/drivers/nfc/st21nfca/core.c +++ b/drivers/nfc/st21nfca/core.c @@ -912,7 +912,7 @@ static int st21nfca_hci_event_received(struct nfc_hci_dev *hdev, u8 pipe, } } -static struct nfc_hci_ops st21nfca_hci_ops = { +static const struct nfc_hci_ops st21nfca_hci_ops = { .open = st21nfca_hci_open, .close = st21nfca_hci_close, .load_session = st21nfca_hci_load_session, |