diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-08-01 06:11:36 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-09 10:38:21 +0100 |
commit | 1e814030954015e42621191f3adc52df2241dc08 (patch) | |
tree | 1ed49c78eef84c25d5a44799a94ece3702757493 | |
parent | 6adcbdcd4b6e8301c3a4c61284e701f87de9a409 (diff) | |
download | linux-1e814030954015e42621191f3adc52df2241dc08.tar.gz linux-1e814030954015e42621191f3adc52df2241dc08.tar.bz2 linux-1e814030954015e42621191f3adc52df2241dc08.zip |
ASoC: remove snd_soc_pcm_set/get_drvdata()
snd_soc_pcm_set_drvdata() will set driver data to rtd->dev,
but driver data of rtd->dev is already used as "rtd" on
soc_post_component_init().
static int soc_post_component_init(xxx)
{
...
dev_set_drvdata(rtd->dev, rtd);
...
}
To remove confusion, this patch removes snd_soc_pcm_set/get_drvdata().
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/sound/soc.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 6144882cc96a..bc953994acb9 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1547,17 +1547,6 @@ static inline void *snd_soc_platform_get_drvdata(struct snd_soc_platform *platfo return snd_soc_component_get_drvdata(&platform->component); } -static inline void snd_soc_pcm_set_drvdata(struct snd_soc_pcm_runtime *rtd, - void *data) -{ - dev_set_drvdata(rtd->dev, data); -} - -static inline void *snd_soc_pcm_get_drvdata(struct snd_soc_pcm_runtime *rtd) -{ - return dev_get_drvdata(rtd->dev); -} - static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card) { INIT_LIST_HEAD(&card->codec_dev_list); |