]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: wm2200: use snd_soc_codec_get_drvdata()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 20 Dec 2017 01:37:13 +0000 (01:37 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 22 Dec 2017 15:57:39 +0000 (15:57 +0000)
snd_soc_codec_get_drvdata() is common function to get
private data. Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm2200.c

index d83dab57a1d1f5171afbc9bf6b9d1c2f9c6a40ba..2d03db6efb7902f54992a0a7d49f27522bbee8ce 100644 (file)
@@ -1550,7 +1550,7 @@ static const struct snd_soc_dapm_route wm2200_dapm_routes[] = {
 
 static int wm2200_probe(struct snd_soc_codec *codec)
 {
-       struct wm2200_priv *wm2200 = dev_get_drvdata(codec->dev);
+       struct wm2200_priv *wm2200 = snd_soc_codec_get_drvdata(codec);
        int ret;
 
        wm2200->codec = codec;