diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-12-20 01:37:13 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-12-22 15:57:39 +0000 |
commit | ac769ab17282e4ca1b95fdc22c58975cba8f3619 (patch) | |
tree | 9f1fd6b9446ba7bcf473ae580eb9effe64151eef /sound/soc/codecs/wm2200.c | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) | |
download | lwn-ac769ab17282e4ca1b95fdc22c58975cba8f3619.tar.gz lwn-ac769ab17282e4ca1b95fdc22c58975cba8f3619.zip |
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: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm2200.c')
-rw-r--r-- | sound/soc/codecs/wm2200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm2200.c b/sound/soc/codecs/wm2200.c index d83dab57a1d1..2d03db6efb79 100644 --- a/sound/soc/codecs/wm2200.c +++ b/sound/soc/codecs/wm2200.c @@ -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; |