ASoC: max98090: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 20 Nov 2014 20:21:54 +0000 (21:21 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 21 Nov 2014 18:16:50 +0000 (18:16 +0000)
The codec field of the snd_soc_widget struct is eventually going to be
removed, use snd_soc_dapm_to_codec(w->dapm) instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98090.c

index a65861cf0a44ed11fd47e6093911672b127050d1..2ad381c4ec5795634d1722998bcd4c5f11a7aaf5 100644 (file)
@@ -806,7 +806,7 @@ static const struct snd_kcontrol_new max98091_snd_controls[] = {
 static int max98090_micinput_event(struct snd_soc_dapm_widget *w,
                                 struct snd_kcontrol *kcontrol, int event)
 {
-       struct snd_soc_codec *codec = w->codec;
+       struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
        struct max98090_priv *max98090 = snd_soc_codec_get_drvdata(codec);
 
        unsigned int val = snd_soc_read(codec, w->reg);