ASoC: cs35l56: Make cs35l56_system_reset() code more generic
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 21 Jul 2023 13:21:11 +0000 (14:21 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 23 Jul 2023 22:40:15 +0000 (23:40 +0100)
commitcf6e7486de80b680fe178a6517dd7c4166a12dbc
tree40d74a6a271d6f6d1cb9ec4009fc0ffca5f3f593
parent898673b905b9318489430663083f629bc38c7461
ASoC: cs35l56: Make cs35l56_system_reset() code more generic

The function can be more easily reused in HDA if the tracking of whether
a soft reset is being performed and whether the device is connected to a
SoundWire bus is moved out of the function.

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-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c