20 Dec
2017
20 Dec
'17
2:37 a.m.
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 --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