summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-04-30 19:52:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-05-21 11:34:47 +0300
commit570ff5c850e71b0d038758b91b5bbccea534d877 (patch)
treefc5d2c5812daafb01cbc4c65d2f0fa73f00602ad /scripts/basic
parent5d6919055dec134de3c40167a490f33c74c12581 (diff)
downloadlinux-570ff5c850e71b0d038758b91b5bbccea534d877.tar.xz
comedi: Consistently define pci_device_ids using named initializers
The .driver_data member of the various struct pci_device_id arrays 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. Also skip explicit assignments of 0 (which the compiler 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/20260430165214.449166-2-u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions