OSDN Git Service

ASoC: wm_adsp: Remove the wmfw_add_ctl helper function
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 17 Nov 2021 13:22:51 +0000 (13:22 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 17 Nov 2021 22:16:19 +0000 (22:16 +0000)
commit56717d72f7a811799e8d138ff3d49325272c5cf6
tree9f513cc988d3196bb70ab4e86bb728a753fbeb74
parent7fabe7fed182498cac568100d8e28d4b95f8a80e
ASoC: wm_adsp: Remove the wmfw_add_ctl helper function

The helper function wmfw_add_ctl is only called from one place and that
place is a function with only 2 lines of code. Merge the helper function
into the work function to simplify the code.

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