diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-10 09:44:04 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-14 14:50:39 -0500 |
commit | bbc8aa7371bbc3df2a6db08dec6815973f7a7982 (patch) | |
tree | c3fb9ee080cf13618987888d0bd5665165cd6e88 | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
ASoC: 88pm860x: 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/88pm860x-codec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index a2bf27f4baab..a0f265327fdf 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c | |||
@@ -386,7 +386,7 @@ static int snd_soc_put_volsw_2r_out(struct snd_kcontrol *kcontrol, | |||
386 | static int pm860x_rsync_event(struct snd_soc_dapm_widget *w, | 386 | static int pm860x_rsync_event(struct snd_soc_dapm_widget *w, |
387 | struct snd_kcontrol *kcontrol, int event) | 387 | struct snd_kcontrol *kcontrol, int event) |
388 | { | 388 | { |
389 | struct snd_soc_codec *codec = w->codec; | 389 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
390 | 390 | ||
391 | /* | 391 | /* |
392 | * In order to avoid current on the load, mute power-on and power-off | 392 | * In order to avoid current on the load, mute power-on and power-off |
@@ -403,7 +403,7 @@ static int pm860x_rsync_event(struct snd_soc_dapm_widget *w, | |||
403 | static int pm860x_dac_event(struct snd_soc_dapm_widget *w, | 403 | static int pm860x_dac_event(struct snd_soc_dapm_widget *w, |
404 | struct snd_kcontrol *kcontrol, int event) | 404 | struct snd_kcontrol *kcontrol, int event) |
405 | { | 405 | { |
406 | struct snd_soc_codec *codec = w->codec; | 406 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
407 | unsigned int dac = 0; | 407 | unsigned int dac = 0; |
408 | int data; | 408 | int data; |
409 | 409 | ||