]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: constify nfc_ops
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 24 Jul 2021 21:49:25 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 08:21:21 +0000 (09:21 +0100)
commite5408f558139dc9d741aae9d2ddc7c69bd854f77
tree7a5026123ebe12da9ef83b8c85c1d993c043c41a
parented4109b33b8c961c67aa83629afb51a1aa26d62c
nfc: constify nfc_ops

Neither the core nor the drivers modify the passed pointer to struct
nfc_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/pn533/pn533.c
include/net/nfc/nfc.h
net/nfc/core.c
net/nfc/digital_core.c
net/nfc/hci/core.c
net/nfc/nci/core.c