linux/include/net/nfc
Ricardo B. Marliere e556001169 nfc: core: make nfc_class constant
Since commit 43a7206b09 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the nfc_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240302-class_cleanup-net-next-v1-6-8fa378595b93@marliere.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-05 11:21:18 -08:00
..
digital.h nfc: constify nfc_digital_ops 2021-07-25 09:21:21 +01:00
hci.h nfc: constify nfc_hci_ops 2021-07-25 09:21:21 +01:00
llc.h
nci_core.h NFC: add NCI_UNREG flag to eliminate the race 2021-11-17 20:17:05 -08:00
nci.h
nfc.h nfc: core: make nfc_class constant 2024-03-05 11:21:18 -08:00