linux/drivers/nfc
Uwe Kleine-König (The Capable Hub) d9d8172a64
nfc: Initialize spi_device_idarrays using member names
While being less compact, using named initializers allows to more easily
see which members of the structs are assigned which value without having
to lookup the declaration of the struct. And it's also more robust
against changes to the struct definition.

The mentioned robustness is relevant for a planned change to struct
spi_device_id that replaces .driver_data by an anonymous union.

This patch doesn't modify the compiled arrays, only their representation
in source form benefits.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/308a0d43ef042566ca595f1afa803cac592a4643.1783091699.git.u.kleine-koenig@baylibre.com
Signed-off-by: David Heidelberg <david@ixit.cz>
History 2026-08-11 18:14:00 +02:00
..
fdp nfc: Unify style of acpi_device_id arrays 2026-08-11 18:13:59 +02:00
microread nfc: Initialize mei_cl_device_idarrays using member names 2026-08-11 18:14:00 +02:00
nfcmrvl nfc: Initialize spi_device_idarrays using member names 2026-08-11 18:14:00 +02:00
nxp-nci nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
pn533 nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
pn544 nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
s3fwrn5 nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
st-nci nfc: Initialize spi_device_idarrays using member names 2026-08-11 18:14:00 +02:00
st21nfca nfc: Unify style of of_device_id arrays 2026-08-11 18:14:00 +02:00
st95hf nfc: Initialize spi_device_idarrays using member names 2026-08-11 18:14:00 +02: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 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mei_phy.h NFC: mei_phy: fix kernel-doc warnings 2025-11-17 19:32:32 -08:00
nfcsim.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
port100.c nfc: port100: refactor endpoint lookup 2026-03-31 19:24:30 -07:00
trf7970a.c nfc: Initialize spi_device_idarrays using member names 2026-08-11 18:14:00 +02:00
virtual_ncidev.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00