]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-core: move soc_probe_component() position
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 23 Aug 2019 00:58:42 +0000 (09:58 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 2 Sep 2019 12:20:06 +0000 (13:20 +0100)
commit74b9b9ddcc65bf8be07b6fa67ca430a76bb4fb50
tree274c67f358cd41c90b0a98ed576a7cbc304ce1bf
parentd45014a9883dfd2aa77a1e4cff6b323ca7193614
ASoC: soc-core: move soc_probe_component() position

It is easy to read code if it is cleanly using paired function/naming,
like start <-> stop, register <-> unregister, etc, etc.
But, current ALSA SoC code is very random, unbalance, not paired, etc.
It is easy to create bug at the such code, and it will be difficult to
debug.

soc_probe_comonent() has paired soc_remove_comonent(),
but, these are implemented at different place.
So it is difficult to confirm code.
This patch moves soc_probe_component() next to
soc_remove_component().

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