summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/lpass.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-08-01 06:10:54 +0000
committerMark Brown <broonie@kernel.org>2016-08-09 10:38:21 +0100
commit6adcbdcd4b6e8301c3a4c61284e701f87de9a409 (patch)
treeb441cda0688d75027e4f4778c139cbaaa2dc2c3b /sound/soc/qcom/lpass.h
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadblackbird-obmc-linux-6adcbdcd4b6e8301c3a4c61284e701f87de9a409.tar.gz
blackbird-obmc-linux-6adcbdcd4b6e8301c3a4c61284e701f87de9a409.zip
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>
Diffstat (limited to 'sound/soc/qcom/lpass.h')
-rw-r--r--sound/soc/qcom/lpass.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/qcom/lpass.h b/sound/soc/qcom/lpass.h
index 30714ad1e138..35b3cea8207d 100644
--- a/sound/soc/qcom/lpass.h
+++ b/sound/soc/qcom/lpass.h
@@ -58,6 +58,8 @@ struct lpass_data {
/* 8016 specific */
struct clk *pcnoc_mport_clk;
struct clk *pcnoc_sway_clk;
+
+ void *private_data;
};
/* Vairant data per each SOC */
OpenPOWER on IntegriCloud