summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-25 00:49:28 +0300
committerDavid S. Miller <davem@davemloft.net>2021-07-25 11:21:21 +0300
commit7186aac9c22de855220ebc54df7af399647bd1fc (patch)
tree119f428bbe33677716c68d6f3aed906195d7872a /net/nfc
parent49545357bf7e134a4012d4652c2df5f78f4485af (diff)
downloadlinux-7186aac9c22de855220ebc54df7af399647bd1fc.tar.xz
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.c2
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)