]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mfd: Consistently define pci_device_ids using named initializers
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 29 Apr 2026 17:06:51 +0000 (19:06 +0200)
committerLee Jones <lee@kernel.org>
Wed, 17 Jun 2026 10:31:17 +0000 (11:31 +0100)
commitade13e2b7bbb1dcdfb98091236b5abf63f259d03
tree9e855673d12b77459179866bd820b88e4fa2ef0f
parentd18fd55c780c2bae3d353024cab7f8746d3d9e91
mfd: Consistently define pci_device_ids using named initializers

The various struct pci_device_id arrays were initialized mostly by one
of the PCI_DEVICE macros and then list expressions. The latter isn't
easily readable if you're not into PCI. Using named initializers is more
explicit and thus easier to parse.

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/20260429170652.4178050-2-u.kleine-koenig@baylibre.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/intel-lpss-pci.c
drivers/mfd/lpc_ich.c
drivers/mfd/lpc_sch.c
drivers/mfd/sm501.c