[PATCH v2 00/12] misc: Improvements around *_device_id defintions
From: Uwe Kleine-König (The Capable Hub)
Date: Fri Jul 17 2026 - 10:51:43 EST
Hello,
the main motivation for this series are the patches that introduce named
initializers to these arrays. The reason I want these is that I plan to
make .driver_data a union, see
https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@xxxxxxxxxxxx/
for more details about this quest.
This series superseds a patch that only handled i2c_device_id, which is
available at
https://lore.kernel.org/all/20260515162734.469327-2-u.kleine-koenig@xxxxxxxxxxxx/.
Changes since then:
- Also handle all the other *_device_id to ideally only have to bother
about drivers/misc once for all the similar quests
- split drivers/misc/eeprom in separate patches
- rebased to yeserday's next
Best regards
Uwe
Uwe Kleine-König (The Capable Hub) (12):
misc: Drop unused assignment of spi_device_id driver data
misc/pvpanic: Drop unused assignment of acpi_device_id driver data
misc: genwqe: Drop unused assignment of pci_device_id driver data
misc: eeprom: Use named initializers for arrays of i2c_device_data
misc: Use named initializers for arrays of i2c_device_data
misc: Use named initializers for arrays of spi_device_data
misc: mei: Use named initializers for acpi_device_id array
misc: mei: Use named initializer for platform_device_id array
misc: ibmvmc: Use named initializers for vio_device_id array
misc: eeprom: idt_89hpesx: Unify style of of_device_id array
misc: Unify style of of_device_id arrays
misc: Unify code style for various *_device_id arrays
drivers/misc/ad525x_dpot-i2c.c | 52 ++---
drivers/misc/ad525x_dpot-spi.c | 58 ++---
drivers/misc/amd-sbi/rmi-i2c.c | 6 +-
drivers/misc/apds9802als.c | 2 +-
drivers/misc/bcm-vk/bcm_vk_dev.c | 2 +-
drivers/misc/bh1770glc.c | 6 +-
drivers/misc/cardreader/alcor_pci.c | 2 +-
drivers/misc/cb710/core.c | 5 +-
drivers/misc/ds1682.c | 6 +-
drivers/misc/eeprom/idt_89hpesx.c | 202 +++++++++---------
drivers/misc/eeprom/max6875.c | 2 +-
drivers/misc/fastrpc.c | 6 +-
drivers/misc/gehc-achc.c | 4 +-
drivers/misc/genwqe/card_base.c | 88 +++-----
drivers/misc/hi6421v600-irq.c | 2 +-
drivers/misc/hisi_hikey_usb.c | 2 +-
drivers/misc/hmc6352.c | 2 +-
drivers/misc/hpilo.c | 6 +-
drivers/misc/ibmasm/module.c | 2 +-
drivers/misc/ibmvmc.c | 4 +-
drivers/misc/ics932s401.c | 2 +-
drivers/misc/isl29003.c | 4 +-
drivers/misc/isl29020.c | 2 +-
drivers/misc/keba/lan9252.c | 4 +-
drivers/misc/lattice-ecp3-config.c | 4 +-
drivers/misc/lis3lv02d/lis3lv02d_i2c.c | 8 +-
drivers/misc/lis3lv02d/lis3lv02d_spi.c | 2 +-
drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c | 2 +-
.../misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c | 4 +-
.../misc/mchp_pci1xxxx/mchp_pci1xxxx_otpe2p.c | 4 +-
drivers/misc/mei/pci-csc.c | 2 +-
drivers/misc/mei/pci-me.c | 166 +++++++-------
drivers/misc/mei/pci-txe.c | 6 +-
drivers/misc/mei/platform-vsc.c | 2 +-
drivers/misc/mei/vsc-tp.c | 10 +-
drivers/misc/mrvl_cn10k_dpi.c | 2 +-
drivers/misc/nsm.c | 2 +-
drivers/misc/ocxl/pci.c | 2 +-
drivers/misc/open-dice.c | 2 +-
drivers/misc/pci_endpoint_test.c | 16 +-
drivers/misc/phantom.c | 6 +-
drivers/misc/pvpanic/pvpanic-mmio.c | 8 +-
drivers/misc/pvpanic/pvpanic-pci.c | 4 +-
drivers/misc/qcom-coincell.c | 4 +-
drivers/misc/rp1/rp1_pci.c | 2 +-
drivers/misc/sram.c | 2 +-
drivers/misc/ti_fpc202.c | 2 +-
drivers/misc/tsl2550.c | 2 +-
drivers/misc/vcpu_stall_detector.c | 4 +-
drivers/misc/vmw_vmci/vmci_guest.c | 4 +-
50 files changed, 362 insertions(+), 381 deletions(-)
base-commit: 1a1757b76427f6201bfe0bf1bea9f7574f332a93
--
2.55.0.11.g153666a7d9bb