summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ak4671.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-10 15:44:05 +0100
committerMark Brown <broonie@kernel.org>2015-01-14 20:50:43 +0100
commit08ca560aa0a0aa634f3d946a9a713473d5d2cda4 (patch)
treeae109dfc60c371940d961f22bbaf34e9f33cb6f5 /sound/soc/codecs/ak4671.c
parentASoC: 88pm860x: Replace w->codec snd_soc_dapm_to_codec(w->dapm) (diff)
downloadlinux-08ca560aa0a0aa634f3d946a9a713473d5d2cda4.tar.xz
linux-08ca560aa0a0aa634f3d946a9a713473d5d2cda4.zip
ASoC: ak4671: 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>
Diffstat (limited to 'sound/soc/codecs/ak4671.c')
-rw-r--r--sound/soc/codecs/ak4671.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ak4671.c b/sound/soc/codecs/ak4671.c
index 686cacb0e835..632e89f793a7 100644
--- a/sound/soc/codecs/ak4671.c
+++ b/sound/soc/codecs/ak4671.c
@@ -163,7 +163,7 @@ static const struct snd_kcontrol_new ak4671_snd_controls[] = {
static int ak4671_out2_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{
- struct snd_soc_codec *codec = w->codec;
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
switch (event) {
case SND_SOC_DAPM_POST_PMU: