ASoC: add for_each_link_codecs() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 3 Sep 2018 02:12:40 +0000 (02:12 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 4 Sep 2018 15:59:11 +0000 (16:59 +0100)
commit3db769f17714ae65f2faf44ff2bae9d52f4bd46b
tree006474c276d60c9d5c5b515487dac83ce28b0977
parent18d545bb2599d6e5b0747351eaeebb0160d261f9
ASoC: add for_each_link_codecs() macro

ALSA SoC snd_soc_dai_link has snd_soc_dai_link_component array
for codecs.
To be more readable code, this patch adds
new for_each_link_codecs() 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>
include/sound/soc.h
sound/soc/meson/axg-card.c
sound/soc/soc-core.c