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

ASoC: wm8961: 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
32a4b446 11e5e79a

+1 -1
+1 -1
sound/soc/codecs/wm8958-dsp2.c
··· 418 418 int wm8958_aif_ev(struct snd_soc_dapm_widget *w, 419 419 struct snd_kcontrol *kcontrol, int event) 420 420 { 421 - struct snd_soc_codec *codec = w->codec; 421 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 422 422 int i; 423 423 424 424 switch (event) {