diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 10:21:21 +0200 |
commit | 49545357bf7e134a4012d4652c2df5f78f4485af (patch) | |
tree | 323c85b3dcb284369ae59847c52e6b2426a04cb0 /net/nfc/hci/llc_nop.c | |
parent | nfc: constify nfc_hci_ops (diff) | |
download | linux-49545357bf7e134a4012d4652c2df5f78f4485af.tar.xz linux-49545357bf7e134a4012d4652c2df5f78f4485af.zip |
nfc: constify nfc_llc_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_llc_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 'net/nfc/hci/llc_nop.c')
-rw-r--r-- | net/nfc/hci/llc_nop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/hci/llc_nop.c b/net/nfc/hci/llc_nop.c index a42852f36f2e..a58716f16954 100644 --- a/net/nfc/hci/llc_nop.c +++ b/net/nfc/hci/llc_nop.c @@ -71,7 +71,7 @@ static int llc_nop_xmit_from_hci(struct nfc_llc *llc, struct sk_buff *skb) return llc_nop->xmit_to_drv(llc_nop->hdev, skb); } -static struct nfc_llc_ops llc_nop_ops = { +static const struct nfc_llc_ops llc_nop_ops = { .init = llc_nop_init, .deinit = llc_nop_deinit, .start = llc_nop_start, |