diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-13 10:27:12 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 19:52:57 +0000 |
commit | 83f132c5e3c18db61965fe49c827bd7ec04e78c0 (patch) | |
tree | 8df95f78c6a7ac73f7ebca293ff574a4c2b2d304 /sound/soc/codecs/wm8350.c | |
parent | cf53380c88c0193107113932975ef4adf518a58b (diff) | |
download | linux-next-83f132c5e3c18db61965fe49c827bd7ec04e78c0.tar.gz |
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) static int pga_event(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); struct wm8350_data *wm8350_data = snd_soc_codec_get_drvdata(codec); struct wm8350_output *out; |