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

ASoC: wm9090: 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
0a3042d7 8a8a84e6

+1 -1
+1 -1
sound/soc/codecs/wm9090.c
··· 254 254 static int hp_ev(struct snd_soc_dapm_widget *w, 255 255 struct snd_kcontrol *kcontrol, int event) 256 256 { 257 - struct snd_soc_codec *codec = w->codec; 257 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 258 258 unsigned int reg = snd_soc_read(codec, WM9090_ANALOGUE_HP_0); 259 259 260 260 switch (event) {