From: Lars-Peter Clausen Date: Tue, 13 Jan 2015 09:27:19 +0000 (+0100) Subject: ASoC: wm8955: Replace w->codec snd_soc_dapm_to_codec(w->dapm) X-Git-Tag: v4.14-rc1~5985^2~13^2~11^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11e5e79af8eb1ace533d49495f9da9e6f8718545;p=platform%2Fkernel%2Flinux-rpi.git ASoC: wm8955: 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/wm8955.c b/sound/soc/codecs/wm8955.c index 1173f7f..1ab2d46 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c @@ -333,7 +333,7 @@ static int wm8955_configure_clocking(struct snd_soc_codec *codec) static int wm8955_sysclk(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 ret = 0; /* Always disable the clocks - if we're doing reconfiguration this