summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-04 17:05:37 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2026-06-17 11:07:01 +0200
commit01d1004449c59c4c48e4ee04ca57e04ecf04748b (patch)
tree8a632c16b5bd30d692f9b33de3eefe79669d02af /tools/perf/scripts/python/libxed.py
parent4af021a977735420e8fe18d64bef18ad0608d981 (diff)
drm: 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 the PCI_DEVICE macro and named initializers is more explicit and thus easier to parse. Also skip explicit assignments of 0 (which the compiler then takes care of). This change doesn't introduce changes to the compiled pci_device_id arrays. Tested on x86 and arm64. v2: - gma500: fix coding style in cast Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> Reviewed-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20260504150537.2136760-2-u.kleine-koenig@baylibre.com
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions