linux/drivers/nfc/nfcmrvl
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
..
fw_dnld.c nfc: mrvl: correct minor coding style violations 2021-05-31 21:32:30 -07:00
fw_dnld.h nfc: mrvl: use SPDX-License-Identifier 2021-05-31 21:31:09 -07:00
i2c.c nfc: mrvl: use SPDX-License-Identifier 2021-05-31 21:31:09 -07:00
Kconfig nfc: Fix Kconfig indentation 2019-11-20 12:30:40 -08:00
main.c nfc: constify nci_ops 2021-07-25 09:21:20 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nfcmrvl.h nfc: mrvl: correct minor coding style violations 2021-05-31 21:32:30 -07:00
spi.c nfc: mrvl: use SPDX-License-Identifier 2021-05-31 21:31:09 -07:00
uart.c nfc: mrvl: simplify with module_driver 2021-05-31 21:32:37 -07:00
usb.c nfc: mrvl: reduce the scope of local variables 2021-06-03 13:59:08 -07:00