ASoC: Change the PCM runtime array to a list
[deliverable/linux.git] / sound / soc / intel / boards / cht_bsw_max98090_ti.c
index 4e2fcf188dd1e0be1dce9a618929235f35bcb5a0..e36dad302bed206e58c3174072e3547d7d5e0015 100644 (file)
@@ -41,12 +41,9 @@ struct cht_mc_private {
 
 static inline struct snd_soc_dai *cht_get_codec_dai(struct snd_soc_card *card)
 {
-       int i;
+       struct snd_soc_pcm_runtime *rtd;
 
-       for (i = 0; i < card->num_rtd; i++) {
-               struct snd_soc_pcm_runtime *rtd;
-
-               rtd = card->rtd + i;
+       list_for_each_entry(rtd, &card->rtd_list, list) {
                if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI,
                             strlen(CHT_CODEC_DAI)))
                        return rtd->codec_dai;
This page took 0.025959 seconds and 5 git commands to generate.