ASoC: wm8731: Factor our MCLK and mutex initialisation
authorMark Brown <broonie@kernel.org>
Fri, 25 Mar 2022 15:31:18 +0000 (15:31 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 07:39:31 +0000 (08:39 +0100)
commit8875d104af6c237bfedb47309afd938984a3c05b
treee55617d6f60ea0071c1a831f5f53eb9092c78ace
parent5f1b9d1e424b91a8ae04211cbe4d354463c83583
ASoC: wm8731: Factor our MCLK and mutex initialisation

The code for initialising the MCLK and mutex is identical in the I2C and SPI
probe functions so just move this out into wm8731_init().

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