diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-06-19 01:50:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-19 05:55:38 -0400 |
commit | e73a2571988870372f7f2b6072a98f49e414be66 (patch) | |
tree | c5abb151c5262e4d75e1b509ba2ddf989b699697 /sound/soc/codecs/wm8996.c | |
parent | 5c3fc7a79aae474670096d73da21aec9f0750abb (diff) |
ASoC: wm5100/wm8903/wm8996: Replace open-coded snd_soc_dapm_to_codec()
We now have a generic helper function to cast from a DAPM context to a CODEC.
Make use of it in the places which previously open-coded it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/wm8996.c')
-rw-r--r-- | sound/soc/codecs/wm8996.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index c6cbb3b8ace9..8f4d2cddb962 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c | |||
@@ -690,8 +690,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, u16 mask) | |||
690 | static void wm8996_seq_notifier(struct snd_soc_dapm_context *dapm, | 690 | static void wm8996_seq_notifier(struct snd_soc_dapm_context *dapm, |
691 | enum snd_soc_dapm_type event, int subseq) | 691 | enum snd_soc_dapm_type event, int subseq) |
692 | { | 692 | { |
693 | struct snd_soc_codec *codec = container_of(dapm, | 693 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm); |
694 | struct snd_soc_codec, dapm); | ||
695 | struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec); | 694 | struct wm8996_priv *wm8996 = snd_soc_codec_get_drvdata(codec); |
696 | u16 val, mask; | 695 | u16 val, mask; |
697 | 696 | ||