ASoC: soc-io: Fix snd_soc_component_update_bits_legacy
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 12 Mar 2018 14:24:23 +0000 (16:24 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 12 Mar 2018 16:58:02 +0000 (09:58 -0700)
commitdead99e8579b6e2ebdf1e9c819e67d7f4a5cedbb
tree09f1a2a3f379642c6efe3182055fec3612765e37
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
ASoC: soc-io: Fix snd_soc_component_update_bits_legacy

After the codec to component conversion codecs with custom read/write
function will no longer able to use update_bits as their io callbacks are
registered at component->driver level and not in component level.

To not complicate the code further, lets just use the
snd_soc_component_read/snd_soc_component_write function and let them sort
out the correct io function to call.

Fixes: d0ff8ba57d965 ("ASoC: add Component level .read/.write")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-io.c