Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm9713: 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>

authored by

Lars-Peter Clausen and committed by
Mark Brown
ff70508a 0a3042d7

+1 -1
+1 -1
sound/soc/codecs/wm9713.c
··· 217 217 static int wm9713_voice_shutdown(struct snd_soc_dapm_widget *w, 218 218 struct snd_kcontrol *kcontrol, int event) 219 219 { 220 - struct snd_soc_codec *codec = w->codec; 220 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 221 221 u16 status, rate; 222 222 223 223 if (WARN_ON(event != SND_SOC_DAPM_PRE_PMD))