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

ASoC: pcm3008: 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>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Lars-Peter Clausen and committed by
Mark Brown
0d76091c 7331ea47

+2 -2
+2 -2
sound/soc/codecs/pcm3008.c
··· 32 32 struct snd_kcontrol *kcontrol, 33 33 int event) 34 34 { 35 - struct snd_soc_codec *codec = w->codec; 35 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 36 36 struct pcm3008_setup_data *setup = codec->dev->platform_data; 37 37 38 38 gpio_set_value_cansleep(setup->pdda_pin, ··· 45 45 struct snd_kcontrol *kcontrol, 46 46 int event) 47 47 { 48 - struct snd_soc_codec *codec = w->codec; 48 + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); 49 49 struct pcm3008_setup_data *setup = codec->dev->platform_data; 50 50 51 51 gpio_set_value_cansleep(setup->pdad_pin,