From: Lars-Peter Clausen Date: Tue, 13 Jan 2015 09:27:14 +0000 (+0100) Subject: ASoC: wm8731: Replace w->codec snd_soc_dapm_to_codec(w->dapm) X-Git-Tag: v4.0-rc1~129^2~13^2~11^2~42 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d286b805e74a95390bc917b1b0ab508e27eda7d7;p=karo-tx-linux.git ASoC: wm8731: 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/wm8731.c b/sound/soc/codecs/wm8731.c index b9211b42f6e9..e129c81ad219 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -217,7 +217,8 @@ SND_SOC_DAPM_INPUT("LLINEIN"), static int wm8731_check_osc(struct snd_soc_dapm_widget *source, struct snd_soc_dapm_widget *sink) { - struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(source->codec); + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); + struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); return wm8731->sysclk_type == WM8731_SYSCLK_XTAL; }