ASoC: wm_adsp: factor out getting base register for a control
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Wed, 9 Nov 2016 17:14:14 +0000 (17:14 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 14 Nov 2016 11:26:18 +0000 (11:26 +0000)
commitb396ebca736f94a1a18bdc9a518ad0ca58fbd842
treec09ce4b2b4278aca97f3ef26012022aab8a03d61
parenta23ebba845fee07cce00659c06844845b24da290
ASoC: wm_adsp: factor out getting base register for a control

The lookup of the base register corresponding to a control is
duplicated in read and write so factor it out into a separate
function.

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