ASoC: wm_adsp: Clean up low level control read/write functions
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 13 Apr 2015 12:27:58 +0000 (13:27 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 14:38:24 +0000 (15:38 +0100)
commitc9f8dd712e1b7a12978844d25edb0508dd3610cf
tree55d5f5b4bf76a7786b8c0c51034e8ece2a7f2725
parent512f2bbaf63f2623ff43c528f0b4281cde3691ed
ASoC: wm_adsp: Clean up low level control read/write functions

Physically reading and writing controls to/from the DSP are handled by
two low level functions (wm_coeff_{write|read}_control, these currently
take in a snd_kcontrol pointer but immediately pull out a wm_coeff_ctl
pointer from the private data. These functions don't handle the kcontrols
at all they just shuttle data to and from the chip and all the call
sites have a wm_coeff_ctl pointer available. This patch just passes the
wm_coeff_ctl pointer straight into these functions.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c