diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2013-04-03 23:18:49 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-04 08:30:06 +0200 |
commit | 88766f04c4142c0a388a1de354616c3deafba513 (patch) | |
tree | e99293557513f294c5a703f449ca871b17be27bc /sound/usb/proc.c | |
parent | 7c51746517e46806c59da6d780e7a14e8ae2bf78 (diff) | |
download | op-kernel-dev-88766f04c4142c0a388a1de354616c3deafba513.zip op-kernel-dev-88766f04c4142c0a388a1de354616c3deafba513.tar.gz |
ALSA: usb-audio: convert list_for_each to entry variant
Change occurances of list_for_each into list_for_each_entry where
applicable.
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/proc.c')
-rw-r--r-- | sound/usb/proc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/usb/proc.c b/sound/usb/proc.c index d218f76..0182ef6 100644 --- a/sound/usb/proc.c +++ b/sound/usb/proc.c @@ -73,15 +73,14 @@ void snd_usb_audio_create_proc(struct snd_usb_audio *chip) */ static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct snd_info_buffer *buffer) { - struct list_head *p; + struct audioformat *fp; static char *sync_types[4] = { "NONE", "ASYNC", "ADAPTIVE", "SYNC" }; - list_for_each(p, &subs->fmt_list) { - struct audioformat *fp; + list_for_each_entry(fp, &subs->fmt_list, list) { snd_pcm_format_t fmt; - fp = list_entry(p, struct audioformat, list); + snd_iprintf(buffer, " Interface %d\n", fp->iface); snd_iprintf(buffer, " Altset %d\n", fp->altsetting); snd_iprintf(buffer, " Format:"); |