summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/cs42xx8.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-06-01 10:10:23 +0200
committerMark Brown <broonie@kernel.org>2015-06-01 17:42:10 +0200
commit02b8c59adedff17a3003a93f3cc395eb6e0d6e8c (patch)
treefb78f0fec54aafb74935d15c27a7de8900bb3fb8 /sound/soc/codecs/cs42xx8.c
parentASoC: cs42l73: Replace direct snd_soc_codec dapm field access (diff)
downloadlinux-02b8c59adedff17a3003a93f3cc395eb6e0d6e8c.tar.xz
linux-02b8c59adedff17a3003a93f3cc395eb6e0d6e8c.zip
ASoC: cs42xx8: Replace direct snd_soc_codec dapm field access
The dapm field of the snd_soc_codec struct is eventually going to be removed, in preparation for this replace all manual access to codec->dapm with snd_soc_codec_get_dapm(). Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs42xx8.c')
-rw-r--r--sound/soc/codecs/cs42xx8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index 670ebfe12903..e1d46862e81f 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -380,7 +380,7 @@ EXPORT_SYMBOL_GPL(cs42xx8_regmap_config);
static int cs42xx8_codec_probe(struct snd_soc_codec *codec)
{
struct cs42xx8_priv *cs42xx8 = snd_soc_codec_get_drvdata(codec);
- struct snd_soc_dapm_context *dapm = &codec->dapm;
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
switch (cs42xx8->drvdata->num_adcs) {
case 3: