未验证 提交 ac769ab1 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: wm2200: use snd_soc_codec_get_drvdata()

snd_soc_codec_get_drvdata() is common function to get
private data. Let's use it.
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 4fbd8d19
...@@ -1550,7 +1550,7 @@ static const struct snd_soc_dapm_route wm2200_dapm_routes[] = { ...@@ -1550,7 +1550,7 @@ static const struct snd_soc_dapm_route wm2200_dapm_routes[] = {
static int wm2200_probe(struct snd_soc_codec *codec) 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; int ret;
wm2200->codec = codec; wm2200->codec = codec;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册