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

ASoC: wm9081: 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
8a8a84e6 8643707f

+1 -1
+1 -1
sound/soc/codecs/wm9081.c
··· 734 734 static int clk_sys_event(struct snd_soc_dapm_widget *w, 735 735 struct snd_kcontrol *kcontrol, int event) 736 736 { 737 - struct snd_soc_codec *codec = w->codec; 737 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 738 738 struct wm9081_priv *wm9081 = snd_soc_codec_get_drvdata(codec); 739 739 740 740 /* This should be done on init() for bypass paths */