diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-13 10:27:20 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 19:53:22 +0000 |
commit | 32a4b446c5ecebd7d92526364ea26ed73fafd0b8 (patch) | |
tree | b32b9515caeacfb6ebf34441f30e8d4a5b006dcf /sound | |
parent | 11e5e79af8eb1ace533d49495f9da9e6f8718545 (diff) | |
download | linux-32a4b446c5ecebd7d92526364ea26ed73fafd0b8.tar.bz2 |
ASoC: wm8961: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
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>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8958-dsp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8958-dsp2.c b/sound/soc/codecs/wm8958-dsp2.c index 3cbc82b33292..c799cca5abeb 100644 --- a/sound/soc/codecs/wm8958-dsp2.c +++ b/sound/soc/codecs/wm8958-dsp2.c @@ -418,7 +418,7 @@ static void wm8958_dsp_apply(struct snd_soc_codec *codec, int path, int start) int wm8958_aif_ev(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); int i; switch (event) { |