summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/hdac_hdmi.c
diff options
context:
space:
mode:
authorKuninori Morimoto2018-09-18 03:29:35 +0200
committerMark Brown2018-09-20 19:21:28 +0200
commitbcb1fd1fcd6507ba5a1f8610550135dc367aedb7 (patch)
treeebc73c53748325b0a910b064cec0858b927624ef /sound/soc/codecs/hdac_hdmi.c
parentASoC: add for_each_card_links() macro (diff)
downloadkernel-qcow2-linux-bcb1fd1fcd6507ba5a1f8610550135dc367aedb7.tar.gz
kernel-qcow2-linux-bcb1fd1fcd6507ba5a1f8610550135dc367aedb7.tar.xz
kernel-qcow2-linux-bcb1fd1fcd6507ba5a1f8610550135dc367aedb7.zip
ASoC: add for_each_card_rtds() macro
To be more readable code, this patch adds new for_each_card_rtds() macro, and replace existing code to it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdac_hdmi.c')
-rw-r--r--sound/soc/codecs/hdac_hdmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index 41d90dc6ebf7..4e9854889a95 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -1604,7 +1604,7 @@ static struct snd_pcm *hdac_hdmi_get_pcm_from_id(struct snd_soc_card *card,
{
struct snd_soc_pcm_runtime *rtd;
- list_for_each_entry(rtd, &card->rtd_list, list) {
+ for_each_card_rtds(card, rtd) {
if (rtd->pcm && (rtd->pcm->device == device))
return rtd->pcm;
}