diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 09:21:21 +0100 |
commit | 7186aac9c22de855220ebc54df7af399647bd1fc (patch) | |
tree | 119f428bbe33677716c68d6f3aed906195d7872a /net/nfc | |
parent | 49545357bf7e134a4012d4652c2df5f78f4485af (diff) | |
download | linux-7186aac9c22de855220ebc54df7af399647bd1fc.tar.bz2 |
nfc: constify nfc_digital_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_digital_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')
-rw-r--r-- | net/nfc/digital_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/digital_core.c b/net/nfc/digital_core.c index 8f2572decccd..fefc03674f4f 100644 --- a/net/nfc/digital_core.c +++ b/net/nfc/digital_core.c @@ -745,7 +745,7 @@ static const struct nfc_ops digital_nfc_ops = { .im_transceive = digital_in_send, }; -struct nfc_digital_dev *nfc_digital_allocate_device(struct nfc_digital_ops *ops, +struct nfc_digital_dev *nfc_digital_allocate_device(const struct nfc_digital_ops *ops, __u32 supported_protocols, __u32 driver_capabilities, int tx_headroom, int tx_tailroom) |