summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8971.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-09-29 11:40:40 +0200
committerMark Brown <broonie@kernel.org>2014-09-29 18:25:25 +0100
commit9cca023e5c5c13486d48d47a46564c359af9ae73 (patch)
tree0f4496fec3448712e5ade49d1c1627020fd87b6f /sound/soc/codecs/wm8971.c
parent0634814fe0f29a46c44386a03f259f99c983bf7e (diff)
downloadlinux-9cca023e5c5c13486d48d47a46564c359af9ae73.tar.gz
linux-9cca023e5c5c13486d48d47a46564c359af9ae73.tar.bz2
linux-9cca023e5c5c13486d48d47a46564c359af9ae73.zip
ASoC: wm8{350,753,971}: Use snd_soc_dapm_to_codec() instead of dapm->codec
The CODEC struct in the snd_soc_dapm_context struct is deprecated and scheduled for removal. Use the snd_soc_dapm_to_codec() function 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>
Diffstat (limited to 'sound/soc/codecs/wm8971.c')
-rw-r--r--sound/soc/codecs/wm8971.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c
index 0499cd4cfb71..39ddb9b8834c 100644
--- a/sound/soc/codecs/wm8971.c
+++ b/sound/soc/codecs/wm8971.c
@@ -615,7 +615,7 @@ static void wm8971_work(struct work_struct *work)
struct snd_soc_dapm_context *dapm =
container_of(work, struct snd_soc_dapm_context,
delayed_work.work);
- struct snd_soc_codec *codec = dapm->codec;
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
wm8971_set_bias_level(codec, codec->dapm.bias_level);
}