ASoC: soc-core: self contained soc_remove_link_components()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 4 Sep 2019 00:14:51 +0000 (09:14 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2019 10:02:04 +0000 (11:02 +0100)
commitb006c0c6ed0dc779e64a8d7a25f5cf316fa3562c
tree1c15aa91dfc770d5522453e3f4569bd45125a416
parent62f07a6b6dbaf0e7196b6911111d4666b5d03518
ASoC: soc-core: self contained soc_remove_link_components()

Current soc_remove_link_components() implementation is very half,
thus it is very difficult to read.

for_each_comp_order(xxx) {
for_each_card_rtds(xxx)
=> soc_remove_link_components(xxx);
}

This patch does all for_each_xxx() under soc_remove_link_components(),
and makes it to self contained.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/8736hcq5ms.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c