OSDN Git Service

ALSA: usb-audio: Clean up mixer element list traverse
authorTakashi Iwai <tiwai@suse.de>
Thu, 3 May 2018 10:33:32 +0000 (12:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 May 2018 10:35:19 +0000 (12:35 +0200)
commit8c558076c740e8009a96c6fdc3d4245dde62be77
tree361e87f1a346bff4a243a2538fb109665978317b
parent207459a2804a64d0f0f05c8aba04e0b0844661f2
ALSA: usb-audio: Clean up mixer element list traverse

Introduce a new macro for iterating over mixer element list for
avoiding the open codes in many places.  Also the open-coded
container_of() and the forced cast to struct usb_mixer_elem_info are
replaced with another simple macro, too.

No functional changes but just readability improvement.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c
sound/usb/mixer.h
sound/usb/mixer_quirks.c
sound/usb/mixer_scarlett.c