ASoC: cs35l56: Make common function for control port wait
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 21 Jul 2023 13:21:17 +0000 (14:21 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 23 Jul 2023 22:40:21 +0000 (23:40 +0100)
commitf32a2bcbc092d60ba8a1b00a22607b220d53a25e
tree618e51100e07d65b8845787faff3650326cf9222
parent84851aa055c890f2ea731a128e8feb64520c2c8e
ASoC: cs35l56: Make common function for control port wait

Move the waits for CS35L56_CONTROL_PORT_READY_US into a common
function, and also allow a wider range of allowed wait times.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230721132120.5523-9-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l56.h
sound/soc/codecs/cs35l56-shared.c