diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-10-31 11:24:32 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-04 15:09:10 +0100 |
commit | a6cece9d81990e729c1f9da2a5bff2d29f7df649 (patch) | |
tree | 46746842e5039a1ce4e01e1e9de58ccb46f234de /sound/usb/mixer.h | |
parent | 4c8c3a4fcc021677c9a363b4e77f61dd09dbfd1a (diff) |
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>
Diffstat (limited to 'sound/usb/mixer.h')
-rw-r--r-- | sound/usb/mixer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer.h b/sound/usb/mixer.h index 73b1f649447..2c7b9c9c2aa 100644 --- a/sound/usb/mixer.h +++ b/sound/usb/mixer.h @@ -57,7 +57,7 @@ struct usb_mixer_elem_info { int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif, int ignore_error); -void snd_usb_mixer_disconnect(struct list_head *p); +void snd_usb_mixer_disconnect(struct usb_mixer_interface *mixer); void snd_usb_mixer_notify_id(struct usb_mixer_interface *mixer, int unitid); |