From: Kuninori Morimoto Date: Mon, 17 Feb 2020 08:28:44 +0000 (+0900) Subject: ASoC: qcom: lpass-platform: use for_each_pcm_streams() macro X-Git-Tag: v5.15~2585^2~226^2~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c260c3f19bd16e6b11841aad1162f5a105ed24e;p=platform%2Fkernel%2Flinux-starfive.git ASoC: qcom: lpass-platform: use for_each_pcm_streams() macro Signed-off-by: Kuninori Morimoto Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/87v9o5aa8m.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c index b05091c..5d1bc57 100644 --- a/sound/soc/qcom/lpass-platform.c +++ b/sound/soc/qcom/lpass-platform.c @@ -529,7 +529,7 @@ static void lpass_platform_pcm_free(struct snd_soc_component *component, struct snd_pcm_substream *substream; int i; - for (i = 0; i < ARRAY_SIZE(pcm->streams); i++) { + for_each_pcm_streams(i) { substream = pcm->streams[i].substream; if (substream) { snd_dma_free_pages(&substream->dma_buffer);