ASoC: wm8731: Factor component init out of bus code
authorMark Brown <broonie@kernel.org>
Fri, 25 Mar 2022 15:31:16 +0000 (15:31 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 07:39:29 +0000 (08:39 +0100)
commit3f4fb905510911f6149593a7321ae1825259b242
tree41a5ad7e16522f336d2df1b8c0452943728e5b52
parent00b87e18f3c0a98e2e22a95eb205c2ae03862a23
ASoC: wm8731: Factor component init out of bus code

Both the I2C and SPI bus code register the component immediately after they
call wm8731_hw_init(), factor the code out into the the common function and
rename it to just be plain wm8731_init() while we're at it since it's not
just for hardware init any more. This refactoring means we need to move the
function after the declaration of the component driver.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220325153121.1598494-3-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8731.c