diff mbox

[1/3] ASoC: wm2200: use snd_soc_codec_get_drvdata()

Message ID 871sjqyyr3.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State Accepted
Commit ac769ab17282e4ca1b95fdc22c58975cba8f3619
Headers show

Commit Message

Kuninori Morimoto Dec. 20, 2017, 1:37 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

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>
---
 sound/soc/codecs/wm2200.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c
index d83dab5..2d03db6 100644
--- a/sound/soc/codecs/wm2200.c
+++ b/sound/soc/codecs/wm2200.c
@@ -1550,7 +1550,7 @@  static SOC_ENUM_SINGLE_DECL(wm2200_aec_loopback,
 
 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;