diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-13 04:27:12 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 14:52:57 -0500 |
commit | 83f132c5e3c18db61965fe49c827bd7ec04e78c0 (patch) | |
tree | 8df95f78c6a7ac73f7ebca293ff574a4c2b2d304 /sound/soc/codecs/wm8350.c | |
parent | cf53380c88c0193107113932975ef4adf518a58b (diff) |
ASoC: wm8350: 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/wm8350.c')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 574579b98872..c81a9eab3e3e 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -259,7 +259,7 @@ static void wm8350_pga_work(struct work_struct *work) | |||
259 | static int pga_event(struct snd_soc_dapm_widget *w, | 259 | static int pga_event(struct snd_soc_dapm_widget *w, |
260 | struct snd_kcontrol *kcontrol, int event) | 260 | struct snd_kcontrol *kcontrol, int event) |
261 | { | 261 | { |
262 | struct snd_soc_codec *codec = w->codec; | 262 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
263 | struct wm8350_data *wm8350_data = snd_soc_codec_get_drvdata(codec); | 263 | struct wm8350_data *wm8350_data = snd_soc_codec_get_drvdata(codec); |
264 | struct wm8350_output *out; | 264 | struct wm8350_output *out; |
265 | 265 | ||