]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-dpcm: tidyup for_each_dpcm_xx() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 25 Oct 2019 00:56:10 +0000 (09:56 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 25 Oct 2019 10:06:35 +0000 (11:06 +0100)
commit7326418801a9e6fe11fbd99c86332c68278627d3
tree85cef91da864ee4e499653f14c81746ef02153df
parent592b7d4c020d029a7a796e12446f6f955d11b564
ASoC: soc-dpcm: tidyup for_each_dpcm_xx() macro

for_each_dpcm_xx() macro is using "dpcm" as parameter (1),
but, it is also struct member (2).

#define for_each_dpcm_fe(be, stream, dpcm) \
list_for_each_entry(dpcm, &(be)->dpcm[stream]...)
                    ^^^^(1)      ^^^^(2)

Thus, it will be compile error if user not used "dpcm" as parameter

for_each_dpcm_fe(be, stream, dp)
                             ^^
This patch fixup it.

Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87tv7x7idx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dpcm.h