diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-15 06:52:02 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 06:57:05 -0500 |
commit | 0d76091ca89d6094b52d442db39f61c896207256 (patch) | |
tree | 90f7f38370283832b243f5326c52a773ae13acc3 | |
parent | 7331ea474e9e7a348541c207bdb6aa518c6403f4 (diff) |
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>
-rw-r--r-- | sound/soc/codecs/pcm3008.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/pcm3008.c b/sound/soc/codecs/pcm3008.c index 7e73fa4b3183..8fb445f33f6f 100644 --- a/sound/soc/codecs/pcm3008.c +++ b/sound/soc/codecs/pcm3008.c | |||
@@ -32,7 +32,7 @@ static int pcm3008_dac_ev(struct snd_soc_dapm_widget *w, | |||
32 | struct snd_kcontrol *kcontrol, | 32 | struct snd_kcontrol *kcontrol, |
33 | int event) | 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 | struct pcm3008_setup_data *setup = codec->dev->platform_data; | 36 | struct pcm3008_setup_data *setup = codec->dev->platform_data; |
37 | 37 | ||
38 | gpio_set_value_cansleep(setup->pdda_pin, | 38 | gpio_set_value_cansleep(setup->pdda_pin, |
@@ -45,7 +45,7 @@ static int pcm3008_adc_ev(struct snd_soc_dapm_widget *w, | |||
45 | struct snd_kcontrol *kcontrol, | 45 | struct snd_kcontrol *kcontrol, |
46 | int event) | 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 | struct pcm3008_setup_data *setup = codec->dev->platform_data; | 49 | struct pcm3008_setup_data *setup = codec->dev->platform_data; |
50 | 50 | ||
51 | gpio_set_value_cansleep(setup->pdad_pin, | 51 | gpio_set_value_cansleep(setup->pdad_pin, |