ASoC: wm_adsp: Factor out common init code
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 12 Nov 2018 13:36:39 +0000 (13:36 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Nov 2018 18:08:59 +0000 (10:08 -0800)
commitdcad34f818f2a23b9a51c7c2a21e167fff441e52
tree15f8810287d452a8ae0f402326c5f1bd3f9b9787
parentf15c19af929d380d0acb2a8d8277d688351bd5de
ASoC: wm_adsp: Factor out common init code

Factor out the duplicated initialization statements from
wm_adsp1_init() and wm_adsp2_init() into new function
wm_adsp_common_init().

The entire content of wm_adsp1_init() is the common code
but it is convenient to retain this exported function
to hide what we currently treat as common init (which might
change in the future) and also make clear the difference
between an ADSP1 entry point and common code.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c