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 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 399 2019-06-05 17:37:12 +02:00
nci_core.h NFC: add NCI_UNREG flag to eliminate the race 2021-11-17 20:17:05 -08:00
nci.h net/nfc/nci: Support NCI 2.x initial sequence 2020-12-04 17:47:35 -08:00
nfc.h nfc: core: make nfc_class constant 2024-03-05 11:21:18 -08:00