diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-13 10:27:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 20:52:45 +0100 |
commit | b96aef71e3bb1b4719325c94a95ddff20583417f (patch) | |
tree | 6f14bc5ba9c94b727c542d34cbe46a272cc0796b /sound/soc/codecs | |
parent | ASoC: arizona: Replace w->codec snd_soc_dapm_to_codec(w->dapm) (diff) | |
download | linux-b96aef71e3bb1b4719325c94a95ddff20583417f.tar.xz linux-b96aef71e3bb1b4719325c94a95ddff20583417f.zip |
ASoC: wm2000: 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')
-rw-r--r-- | sound/soc/codecs/wm2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c index 34ef65c52a7d..8d9de49a5052 100644 --- a/sound/soc/codecs/wm2000.c +++ b/sound/soc/codecs/wm2000.c @@ -683,7 +683,7 @@ static const struct snd_kcontrol_new wm2000_controls[] = { static int wm2000_anc_power_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 wm2000_priv *wm2000 = dev_get_drvdata(codec->dev); int ret; |