OSDN Git Service

nfc: constify nfc_hci_ops
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 24 Jul 2021 21:49:26 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 08:21:21 +0000 (09:21 +0100)
commit094c45c84d799fb0eb3617632097370843ba3678
tree8a6bb9de6d351feb43ee270e2f04a3d94103b4ec
parentf6c802a726aea43a2937763f13560c1fd170fae6
nfc: constify nfc_hci_ops

Neither the core nor the drivers modify the passed pointer to struct
nfc_hci_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>
drivers/nfc/microread/microread.c
drivers/nfc/pn544/pn544.c
drivers/nfc/st21nfca/core.c
include/net/nfc/hci.h
net/nfc/hci/core.c