aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-02-22 12:32:05 -0500
committerMark Brown <broonie@linaro.org>2014-02-24 23:35:48 -0500
commitd7f31d3c898e3e621a34d5d64966f7b830df66f1 (patch)
tree182821b81720143927e6f94a861fe66c91bfd0a8 /sound
parentda6ebf83bb8f3ad5e12b2543f15962e27939ff7f (diff)
ASoC: wm8962: Replace codec->control_data with wm8962->regmap
With the ongoing component-ization of the ASoC framework and the continuing migration to using regmap for IO the control_data field of the snd_soc_codec struct will eventually be removed. Prepare the wm8962 driver for this by using wm8962->regmap instead of accessing the CODEC's control_data field. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8962.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 3924ee243745..6ff1ff83b4dd 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -1479,7 +1479,9 @@ static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
1479 1479
1480static int wm8962_dsp2_write_config(struct snd_soc_codec *codec) 1480static int wm8962_dsp2_write_config(struct snd_soc_codec *codec)
1481{ 1481{
1482 return regcache_sync_region(codec->control_data, 1482 struct wm8962_priv *wm8962 = snd_soc_codec_get_drvdata(codec);
1483
1484 return regcache_sync_region(wm8962->regmap,
1483 WM8962_HDBASS_AI_1, WM8962_MAX_REGISTER); 1485 WM8962_HDBASS_AI_1, WM8962_MAX_REGISTER);
1484} 1486}
1485 1487