diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 10:21:21 +0200 |
commit | 5f3e63933793fff15ae3b968f1c03698bdd3fc66 (patch) | |
tree | 882f69e41babb7f0329ed79df1b13914fa7e4b26 /net/nfc/hci | |
parent | nfc: constify pointer to nfc_vendor_cmd (diff) | |
download | linux-5f3e63933793fff15ae3b968f1c03698bdd3fc66.tar.xz linux-5f3e63933793fff15ae3b968f1c03698bdd3fc66.zip |
nfc: constify nfc_hci_gate
Neither the core nor the drivers modify the passed pointer to struct
nfc_hci_gate, 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')
-rw-r--r-- | net/nfc/hci/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index 3481941be70b..e37d30302b06 100644 --- a/net/nfc/hci/core.c +++ b/net/nfc/hci/core.c @@ -447,7 +447,7 @@ static void nfc_hci_cmd_timeout(struct timer_list *t) } static int hci_dev_connect_gates(struct nfc_hci_dev *hdev, u8 gate_count, - struct nfc_hci_gate *gates) + const struct nfc_hci_gate *gates) { int r; while (gate_count--) { |