linux/drivers/nfc/nxp-nci
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
..
core.c nfc: constify nci_ops 2021-07-25 09:21:20 +01:00
firmware.c NFC: nxp-nci: remove unnecessary label 2021-06-18 12:57:30 -07:00
i2c.c NFC: nxp-nci: Make firmware GPIO pin optional 2020-12-02 11:58:19 -08:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
nxp-nci.h NFC: nxp-nci: Get rid of platform data 2019-07-29 08:56:26 -07:00