linux-stable/drivers/nfc
Krzysztof Kozlowski b9c28286d8 nfc: constify nci_ops
The struct nci_ops is modified by NFC core in only one case:
nci_allocate_device() receives too many proprietary commands (prop_ops)
to configure.  This is a build time known constrain, so a graceful
handling of such case is not necessary.

Instead, fail the nci_allocate_device() and add BUILD_BUG_ON() to places
which set these.

This allows to constify the struct nci_ops (consisting of function
pointers) for correctness and safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-25 09:21:20 +01:00
..
fdp nfc: constify nci_ops 2021-07-25 09:21:20 +01:00
microread NFC: microread: Remove redundant assignment to variable err 2021-06-01 16:58:38 -07:00
nfcmrvl nfc: constify nci_ops 2021-07-25 09:21:20 +01:00
nxp-nci nfc: constify nci_ops 2021-07-25 09:21:20 +01:00
pn533 nfc: pn533: drop unneeded braces {} in if 2021-05-31 21:32:37 -07:00
pn544 nfc: pn544: drop ftrace-like debugging messages 2021-05-31 21:32:37 -07:00
s3fwrn5 nfc: s3fwrn5: mark OF device ID tables as maybe unused 2021-05-28 15:05:56 -07:00
st-nci nfc: constify nci_ops 2021-07-25 09:21:20 +01:00
st21nfca nfc: st21nfca: drop ftrace-like debugging messages 2021-05-31 21:32:37 -07:00
st95hf nfc: st95hf: fix indentation to tabs 2021-05-31 21:32:37 -07:00
Kconfig nfc: Add a virtual nci device driver 2021-01-29 18:03:33 -08:00
Makefile nfc: Add a virtual nci device driver 2021-01-29 18:03:33 -08:00
mei_phy.c nfc: mei_phy: drop ftrace-like debugging messages 2021-05-31 21:31:08 -07:00
mei_phy.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nfcsim.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
port100.c nfc: port100: constify protocol list array 2021-07-23 17:50:43 +01:00
trf7970a.c nfc: fix typo 2021-01-25 19:35:26 -08:00
virtual_ncidev.c nfc: constify nci_ops 2021-07-25 09:21:20 +01:00