OSDN Git Service

ASoC: cs35l56: Remove redundant dsp_ready_completion
authorSimon Trimmer <simont@opensource.cirrus.com>
Fri, 14 Apr 2023 13:37:52 +0000 (14:37 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Apr 2023 11:55:50 +0000 (12:55 +0100)
commit4be476830bf96c0095e4e1acdfc12081aa0fb165
tree97b751603e6c2e65b5b408a0e14dd0df831da38a
parent440c2d38950f738d7a35d3d29533728e74586d54
ASoC: cs35l56: Remove redundant dsp_ready_completion

dsp_ready_completion is redundant and can be replaced by a call
flush_work() to wait for cs35l56_dsp_work() to complete.

As the dsp_work is queued by component_probe() it must run before other
ASoC component callbacks and therefore there is no risk of calling
flush_work() before the dsp_work() has been queued.

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