[PATCH v2 0/2] ata: Consistently define pci_device_ids using named initializers

From: Uwe Kleine-König (The Capable Hub)

Date: Fri Jun 12 2026 - 03:42:29 EST


Hello,

(implicit) v1 of this series can be found at
https://lore.kernel.org/linux-ide/20260430170612.510869-2-u.kleine-koenig@xxxxxxxxxxxx

Damien asked to rework the patch adding more line breaks to make the
resulting lines shorter. I didn't rewrap all arrays, only those that
appeared too long to me; the longest line I kept is:

+ { PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP61_SATA3), .driver_data = GENERIC },

which is short enough to not trigger a checkpatch warning.

I also split the patch in two, in the first patch there are all hunks
that remove explicit assignments of zero, that are not used in the
respective drivers. That doesn't introduce changes to the resulting binary,
because the compiler fills in these zeros.

I didn't add the Reviewed-by: tag for Damien because I'm not completely
sure that the rework really matches what he intended and I did some more
changes.

Best regards
Uwe

Uwe Kleine-König (The Capable Hub) (2):
ata: Drop unused assignments of pci_device_id driver data
ata: Use named initializers for pci_device_id arrays

drivers/ata/acard-ahci.c | 8 +-
drivers/ata/ahci.c | 1626 ++++++++++++++++++++++++-------
drivers/ata/ata_piix.c | 532 ++++++----
drivers/ata/pata_acpi.c | 5 +-
drivers/ata/pata_amd.c | 88 +-
drivers/ata/pata_artop.c | 11 +-
drivers/ata/pata_atp867x.c | 6 +-
drivers/ata/pata_cmd640.c | 4 +-
drivers/ata/pata_cmd64x.c | 11 +-
drivers/ata/pata_jmicron.c | 7 +-
drivers/ata/pata_macio.c | 12 +-
drivers/ata/pata_ninja32.c | 14 +-
drivers/ata/pata_opti.c | 7 +-
drivers/ata/pata_pdc2027x.c | 15 +-
drivers/ata/pata_pdc202xx_old.c | 13 +-
drivers/ata/pata_sch.c | 2 +-
drivers/ata/pata_serverworks.c | 13 +-
drivers/ata/pata_sis.c | 1 -
drivers/ata/pata_via.c | 19 +-
drivers/ata/pdc_adma.c | 3 +-
drivers/ata/sata_mv.c | 34 +-
drivers/ata/sata_nv.c | 29 +-
drivers/ata/sata_promise.c | 34 +-
drivers/ata/sata_qstor.c | 3 +-
drivers/ata/sata_sil.c | 15 +-
drivers/ata/sata_sil24.c | 15 +-
drivers/ata/sata_sis.c | 12 +-
drivers/ata/sata_svw.c | 15 +-
drivers/ata/sata_sx4.c | 3 +-
drivers/ata/sata_uli.c | 7 +-
drivers/ata/sata_via.c | 17 +-
drivers/ata/sata_vsc.c | 14 +-
32 files changed, 1870 insertions(+), 725 deletions(-)


base-commit: abe651837cb394f76d738a7a747322fca3bf17ba
--
2.47.3