linux/drivers/parport
Uwe Kleine-König (The Capable Hub) 7bf924f96d parport: Consistently define pci_device_ids using named initializers
... and PCI device helpers.

The various struct pci_device_id arrays were initialized mostly by list
expressions. This isn't easily readable if you're not into PCI.

Use PCI_DEVICE* helper macros and named initializers which is more
explicit and thus easier to parse. Also skip explicit assignments of 0
(which the compiler then takes care of).

The secret plan is to make struct pci_device_id::driver_data an
anonymous union (similar to
https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@baylibre.com/)
and that requires named initializers. But it's also a nice cleanup on
its own.

This change doesn't introduce changes to the compiled pci_device_id
arrays. Tested on x86 and arm64.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260429161453.4154681-2-u.kleine-koenig@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-17 14:54:18 +02:00
..
BUGS-parport
daisy.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ieee1284_ops.c parport: remove non-zero check on count 2021-08-27 16:18:42 +02:00
ieee1284.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
Kconfig parport: PC style parport depends on HAS_IOPORT 2023-05-31 19:17:40 +01:00
Makefile parport: remove ax88796 driver 2023-01-16 09:26:06 +01:00
multiface.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
parport_amiga.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
parport_atari.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
parport_cs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
parport_gsc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
parport_gsc.h parport: gsc: remove DMA leftover code 2023-08-03 14:40:37 +02:00
parport_ip32.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
parport_mfc3.c parport: mfc3: avoid empty-body warning 2024-04-11 15:14:10 +02:00
parport_pc.c parport: Consistently define pci_device_ids using named initializers 2026-07-17 14:54:18 +02:00
parport_serial.c parport: Consistently define pci_device_ids using named initializers 2026-07-17 14:54:18 +02:00
parport_sunbpp.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
probe.c parport: Use string_upper() instead of open coded variant 2021-05-21 14:48:58 +02:00
procfs.c parport: Proper fix for array out-of-bounds access 2024-10-13 18:17:35 +02:00
share.c parport: Fix race between port and client registration 2026-05-22 12:19:02 +02:00
TODO-parport parport: Remove completed item from to-do list 2026-04-02 17:05:56 +02:00