]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit194ba0b531421f725e43ee73e881034cd1d26348
tree94e44298d4a8f8d1ad60db3f476c6c504bc43b26
parent64547ef429b8d7b3a4374fe7fa2a23a43f9c606d
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