summaryrefslogtreecommitdiffstats
path: root/include/sound/pcm.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-02-22 12:52:53 +0100
committerJaroslav Kysela <perex@suse.cz>2007-05-11 16:55:42 +0200
commitef991b95aa1351a5782cfaccb9aefba76ca8b990 (patch)
tree129762745099142652615dbe1c4c29725cca51c8 /include/sound/pcm.h
parent5e24c1c1c496c4603395d6e9cc320f85008fc891 (diff)
downloadop-kernel-dev-ef991b95aa1351a5782cfaccb9aefba76ca8b990.zip
op-kernel-dev-ef991b95aa1351a5782cfaccb9aefba76ca8b990.tar.gz
[ALSA] Add snd_pcm_group_for_each_entry() for code cleanup
Added a new macro snd_pcm_group_for_each_entry() just for code cleanup. Old macros, snd_pcm_group_for_each() and snd_pcm_group_substream_entry(), are removed. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'include/sound/pcm.h')
-rw-r--r--include/sound/pcm.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index deff5a9..73334e0 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -603,11 +603,8 @@ do { \
read_unlock_irqrestore(&snd_pcm_link_rwlock, (flags)); \
} while (0)
-#define snd_pcm_group_for_each(pos, substream) \
- list_for_each(pos, &substream->group->substreams)
-
-#define snd_pcm_group_substream_entry(pos) \
- list_entry(pos, struct snd_pcm_substream, link_list)
+#define snd_pcm_group_for_each_entry(s, substream) \
+ list_for_each_entry(s, &substream->group->substreams, link_list)
static inline int snd_pcm_running(struct snd_pcm_substream *substream)
{
OpenPOWER on IntegriCloud