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 | ALSA: usb-audio: Clean up the code in set_sample_rate_v2() (diff) | |
download | linux-88766f04c4142c0a388a1de354616c3deafba513.tar.xz linux-88766f04c4142c0a388a1de354616c3deafba513.zip |
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 d218f763501f..0182ef634d8b 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:"); |