OSDN Git Service

ASoC: soc-core: rename soc_post_component_init() to soc_rtd_init()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 23 Aug 2019 00:58:32 +0000 (09:58 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 23 Aug 2019 10:35:07 +0000 (11:35 +0100)
commit542694df7511977c3baa6ba855126a0cce883977
tree94e44298d4a8f8d1ad60db3f476c6c504bc43b26
parent495efdb01f89a5fc53f9b2e61f5726d804d4a15d
ASoC: soc-core: rename soc_post_component_init() to soc_rtd_init()

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.

From function name point of view, "soc_post_component_init()" sounds
like "component initialize function".
But in reality it is rtd setup function.

This patch renames soc_post_component_init() to soc_rtd_init()

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