diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-02-22 06:52:53 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-05-11 10:55:42 -0400 |
commit | ef991b95aa1351a5782cfaccb9aefba76ca8b990 (patch) | |
tree | 129762745099142652615dbe1c4c29725cca51c8 /include/sound | |
parent | 5e24c1c1c496c4603395d6e9cc320f85008fc891 (diff) |
[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')
-rw-r--r-- | include/sound/pcm.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index deff5a92efa6..73334e0f823f 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -603,11 +603,8 @@ do { \ | |||
603 | read_unlock_irqrestore(&snd_pcm_link_rwlock, (flags)); \ | 603 | read_unlock_irqrestore(&snd_pcm_link_rwlock, (flags)); \ |
604 | } while (0) | 604 | } while (0) |
605 | 605 | ||
606 | #define snd_pcm_group_for_each(pos, substream) \ | 606 | #define snd_pcm_group_for_each_entry(s, substream) \ |
607 | list_for_each(pos, &substream->group->substreams) | 607 | list_for_each_entry(s, &substream->group->substreams, link_list) |
608 | |||
609 | #define snd_pcm_group_substream_entry(pos) \ | ||
610 | list_entry(pos, struct snd_pcm_substream, link_list) | ||
611 | 608 | ||
612 | static inline int snd_pcm_running(struct snd_pcm_substream *substream) | 609 | static inline int snd_pcm_running(struct snd_pcm_substream *substream) |
613 | { | 610 | { |