[alsa-devel] [PATCH 1/3] ASoC: wm2200: use snd_soc_codec_get_drvdata()
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Wed Dec 20 02:37:13 CET 2017
From: Kuninori Morimoto <kuninori.morimoto.gx at 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 at renesas.com>
---
sound/soc/codecs/wm2200.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.9.1
More information about the Alsa-devel
mailing list