]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: designware-pcidrv: Consistently define pci_device_ids using named initializers
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Fri, 22 May 2026 20:35:13 +0000 (22:35 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 9 Jun 2026 06:44:21 +0000 (08:44 +0200)
commit441472454849bf5c8d1f2deceeaf15e6ae888387
tree1d7876918358627e588ff81ffff3895b4ab01ec1
parentcdf12d80250e18a9f6c9c3b85796712a95c864f7
i2c: designware-pcidrv: Consistently define pci_device_ids using named initializers

The .driver_data member of the struct pci_device_id array were
initialized by list expressions. This isn't easily readable if you're
not into PCI. Using named initializers is more explicit and thus easier
to parse.

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

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/68667c4ab85716b190d8b705813b610e21a386f6.1779481436.git.u.kleine-koenig@baylibre.com
drivers/i2c/busses/i2c-designware-pcidrv.c