Skip to content

Commit e4b0e41

Browse files
committed
ALSA: usb-audio: Use the new macro for HP Dock rename quirks
Replace the open-code with the new QUIRK_DEVICE_PROFILE() macro for simplicity. Fixes: 0c5086f ("ALSA: usb-audio: Add vendor, product and profile name for HP Thunderbolt Dock") Link: https://lore.kernel.org/r/20200608071513.570-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 0c5086f commit e4b0e41

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

sound/usb/quirks-table.h

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,14 @@
4343
/* HP Thunderbolt Dock Audio Headset */
4444
{
4545
USB_DEVICE(0x03f0, 0x0269),
46-
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
47-
.vendor_name = "HP",
48-
.product_name = "Thunderbolt Dock Audio Headset",
49-
.profile_name = "HP-Thunderbolt-Dock-Audio-Headset",
50-
.ifnum = QUIRK_NO_INTERFACE
51-
}
46+
QUIRK_DEVICE_PROFILE("HP", "Thunderbolt Dock Audio Headset",
47+
"HP-Thunderbolt-Dock-Audio-Headset"),
5248
},
5349
/* HP Thunderbolt Dock Audio Module */
5450
{
5551
USB_DEVICE(0x03f0, 0x0567),
56-
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
57-
.vendor_name = "HP",
58-
.product_name = "Thunderbolt Dock Audio Module",
59-
.profile_name = "HP-Thunderbolt-Dock-Audio-Module",
60-
.ifnum = QUIRK_NO_INTERFACE
61-
}
52+
QUIRK_DEVICE_PROFILE("HP", "Thunderbolt Dock Audio Module",
53+
"HP-Thunderbolt-Dock-Audio-Module"),
6254
},
6355
/* FTDI devices */
6456
{

0 commit comments

Comments
 (0)