linux/sound/pci/echoaudio
Uwe Kleine-König (The Capable Hub) 4ce505c490 ALSA: Consistently define pci_device_ids using named initializers
... and PCI device helpers.

The various struct pci_device_id arrays were initialized mostly by list
expressions, some of them using the PCI_DEVICE macros. This isn't easily
readable if you're not into PCI. Using named initializers is more
explicit and thus easier to parse. Also use PCI_DEVICE* helper macros to
assign .vendor, .device, .subvendor and .subdevice where appropriate and
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
array. 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/20260430135255.279393-2-u.kleine-koenig@baylibre.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-05-04 13:22:14 +02:00
..
darla20_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
darla20.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
darla24_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
darla24.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
echo3g_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
echo3g.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
echoaudio_3g.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
echoaudio_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
echoaudio_dsp.h ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
echoaudio_gml.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
echoaudio.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
echoaudio.h ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
gina20_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
gina20.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
gina24_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
gina24.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
indigo_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
indigo_express_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
indigo.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
indigodj_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
indigodj.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
indigodjx_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
indigodjx.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
indigoio_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
indigoio.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
indigoiox_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
indigoiox.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
layla20_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
layla20.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
layla24_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
layla24.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
Makefile ALSA: pci: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:37 +02:00
mia_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
mia.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
midi.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
mona_dsp.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
mona.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00