diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-12-19 20:37:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-12-22 10:57:39 -0500 |
commit | ac769ab17282e4ca1b95fdc22c58975cba8f3619 (patch) | |
tree | 9f1fd6b9446ba7bcf473ae580eb9effe64151eef | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) |
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>
-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[] = { | |||
1550 | 1550 | ||
1551 | static int wm2200_probe(struct snd_soc_codec *codec) | 1551 | static int wm2200_probe(struct snd_soc_codec *codec) |
1552 | { | 1552 | { |
1553 | struct wm2200_priv *wm2200 = dev_get_drvdata(codec->dev); | 1553 | struct wm2200_priv *wm2200 = snd_soc_codec_get_drvdata(codec); |
1554 | int ret; | 1554 | int ret; |
1555 | 1555 | ||
1556 | wm2200->codec = codec; | 1556 | wm2200->codec = codec; |