diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-13 04:27:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 14:53:03 -0500 |
commit | d286b805e74a95390bc917b1b0ab508e27eda7d7 (patch) | |
tree | 24f94ef8eafd856a1abd44305a31dc18b3bd03a3 /sound/soc/codecs/wm8731.c | |
parent | a8c696f13ba79a6e60517d43110038a24862e286 (diff) |
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 <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8731.c')
-rw-r--r-- | sound/soc/codecs/wm8731.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"), | |||
217 | static int wm8731_check_osc(struct snd_soc_dapm_widget *source, | 217 | static int wm8731_check_osc(struct snd_soc_dapm_widget *source, |
218 | struct snd_soc_dapm_widget *sink) | 218 | struct snd_soc_dapm_widget *sink) |
219 | { | 219 | { |
220 | struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(source->codec); | 220 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(source->dapm); |
221 | struct wm8731_priv *wm8731 = snd_soc_codec_get_drvdata(codec); | ||
221 | 222 | ||
222 | return wm8731->sysclk_type == WM8731_SYSCLK_XTAL; | 223 | return wm8731->sysclk_type == WM8731_SYSCLK_XTAL; |
223 | } | 224 | } |