]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteeec5f5b85daf600ab9b9f7c7bd310bbf8e6821e
treee55617d6f60ea0071c1a831f5f53eb9092c78ace
parente2cddc9a457458e39f76340f5fd325a8e77ed7b0
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