linux/sound/pci/ca0106
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
..
ca_midi.c ALSA: ca0106: Use guard() for spin locks 2025-09-01 13:52:39 +02:00
ca_midi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
ca0106_main.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
ca0106_mixer.c ALSA: ca0106: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:18 +02:00
ca0106_proc.c ALSA: ca0106: Use guard() for spin locks 2025-09-01 13:52:39 +02:00
ca0106.h ALSA: ca0106: Rename register macro names 2022-02-10 13:43:06 +01:00
Makefile ALSA: pci: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:37 +02:00