]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 1 Aug 2016 06:10:54 +0000 (06:10 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 9 Aug 2016 09:38:21 +0000 (10:38 +0100)
commit6adcbdcd4b6e8301c3a4c61284e701f87de9a409
treeb441cda0688d75027e4f4778c139cbaaa2dc2c3b
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
ASoC: lpass-platform: don't use snd_soc_pcm_set_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, snd_soc_pcm_set/get_drvdata() should be
removed soon. This patch is for it.

qcom/lpass-platform.c sets struct lpass_pcm_data to rtd->dev today,
but we can replace it to struct lpass_data :: private_data.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-platform.c
sound/soc/qcom/lpass.h