]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix multiple definitions in AU0828_DEVICE() macro
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:00:46 +0000 (23:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jul 2018 06:30:57 +0000 (08:30 +0200)
commitaf8ff0313659f93ce6f2204f1462b9514f4ef0c1
treeb861415a5e2a6db8e66bf770862585f349bb9937
parentfefd74e1a30d428338b438cec39323747576d4f6
ALSA: usb-audio: Fix multiple definitions in AU0828_DEVICE() macro

AU0828_DEVICE() macro in quirks-table.h uses USB_DEVICE_VENDOR_SPEC()
for expanding idVendor and idProduct fields.  However, the latter
macro adds also match_flags and bInterfaceClass, which are different
from the values AU0828_DEVICE() macro sets after that.

For fixing them, just expand idVendor and idProduct fields manually in
AU0828_DEVICE().

This fixes sparse warnings like:
  sound/usb/quirks-table.h:2892:1: warning: Initializer entry defined twice

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks-table.h