From: Lars-Peter Clausen Date: Tue, 13 Jan 2015 09:27:20 +0000 (+0100) Subject: ASoC: wm8961: Replace w->codec snd_soc_dapm_to_codec(w->dapm) X-Git-Tag: firefly_0821_release~176^2~2367^2~13^2~11^2~36 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=32a4b446c5ecebd7d92526364ea26ed73fafd0b8;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Charles Keepax Signed-off-by: Mark Brown --- 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) {