]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: constify nfc_hci_gate
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 24 Jul 2021 21:49:24 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 08:21:21 +0000 (09:21 +0100)
commited4109b33b8c961c67aa83629afb51a1aa26d62c
tree882f69e41babb7f0329ed79df1b13914fa7e4b26
parent410f58e5a2848028fc11687184c53dbc1baaf33d
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>
drivers/nfc/microread/microread.c
drivers/nfc/pn544/pn544.c
drivers/nfc/st21nfca/core.c
net/nfc/hci/core.c