]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Pass direct struct pointer instead of list_head
authorTakashi Iwai <tiwai@suse.de>
Fri, 31 Oct 2014 10:24:32 +0000 (11:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Nov 2014 14:09:10 +0000 (15:09 +0100)
commit9c2249485c549c88710f6b8ebd10d9c6790035e6
tree46746842e5039a1ce4e01e1e9de58ccb46f234de
parent02dd322f7c34804c4220066161bb26663a9078d9
ALSA: usb-audio: Pass direct struct pointer instead of list_head

Some functions in mixer.c and endpoint.c receive list_head instead of
the object itself.  This is not obvious and rather error-prone.  Let's
pass the proper object directly instead.

The functions in midi.c still receive list_head and this can't be
changed since the object definition isn't exposed to the outside of
midi.c, so left as is.

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