diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-02-03 07:51:51 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 13:26:59 -0500 |
commit | d1debafc381cb1fa340b5d0dc79637ad1d523770 (patch) | |
tree | a6bc15ff57a25c9cba628baace360259394d53a2 /sound/soc/davinci | |
parent | a7e46bd9a19c1e0058c7c8c0b4cc3e6cf101e12a (diff) |
ASoC: davinci-mcasp: Rename platform data struct
Rename the struct for the platform data:
snd_platform_data -> davinci_mcasp_pdata
Since we have users under arch/arm/mach-davinci/ for this struct add
temporary define to avoid breakage. The arch code can be updated later to
use the new struct name.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 63b1ecc97cb1..e5fce2ed4dc6 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c | |||
@@ -823,28 +823,28 @@ static const struct snd_soc_component_driver davinci_mcasp_component = { | |||
823 | }; | 823 | }; |
824 | 824 | ||
825 | /* Some HW specific values and defaults. The rest is filled in from DT. */ | 825 | /* Some HW specific values and defaults. The rest is filled in from DT. */ |
826 | static struct snd_platform_data dm646x_mcasp_pdata = { | 826 | static struct davinci_mcasp_pdata dm646x_mcasp_pdata = { |
827 | .tx_dma_offset = 0x400, | 827 | .tx_dma_offset = 0x400, |
828 | .rx_dma_offset = 0x400, | 828 | .rx_dma_offset = 0x400, |
829 | .asp_chan_q = EVENTQ_0, | 829 | .asp_chan_q = EVENTQ_0, |
830 | .version = MCASP_VERSION_1, | 830 | .version = MCASP_VERSION_1, |
831 | }; | 831 | }; |
832 | 832 | ||
833 | static struct snd_platform_data da830_mcasp_pdata = { | 833 | static struct davinci_mcasp_pdata da830_mcasp_pdata = { |
834 | .tx_dma_offset = 0x2000, | 834 | .tx_dma_offset = 0x2000, |
835 | .rx_dma_offset = 0x2000, | 835 | .rx_dma_offset = 0x2000, |
836 | .asp_chan_q = EVENTQ_0, | 836 | .asp_chan_q = EVENTQ_0, |
837 | .version = MCASP_VERSION_2, | 837 | .version = MCASP_VERSION_2, |
838 | }; | 838 | }; |
839 | 839 | ||
840 | static struct snd_platform_data am33xx_mcasp_pdata = { | 840 | static struct davinci_mcasp_pdata am33xx_mcasp_pdata = { |
841 | .tx_dma_offset = 0, | 841 | .tx_dma_offset = 0, |
842 | .rx_dma_offset = 0, | 842 | .rx_dma_offset = 0, |
843 | .asp_chan_q = EVENTQ_0, | 843 | .asp_chan_q = EVENTQ_0, |
844 | .version = MCASP_VERSION_3, | 844 | .version = MCASP_VERSION_3, |
845 | }; | 845 | }; |
846 | 846 | ||
847 | static struct snd_platform_data dra7_mcasp_pdata = { | 847 | static struct davinci_mcasp_pdata dra7_mcasp_pdata = { |
848 | .tx_dma_offset = 0x200, | 848 | .tx_dma_offset = 0x200, |
849 | .rx_dma_offset = 0x284, | 849 | .rx_dma_offset = 0x284, |
850 | .asp_chan_q = EVENTQ_0, | 850 | .asp_chan_q = EVENTQ_0, |
@@ -912,11 +912,11 @@ err1: | |||
912 | return ret; | 912 | return ret; |
913 | } | 913 | } |
914 | 914 | ||
915 | static struct snd_platform_data *davinci_mcasp_set_pdata_from_of( | 915 | static struct davinci_mcasp_pdata *davinci_mcasp_set_pdata_from_of( |
916 | struct platform_device *pdev) | 916 | struct platform_device *pdev) |
917 | { | 917 | { |
918 | struct device_node *np = pdev->dev.of_node; | 918 | struct device_node *np = pdev->dev.of_node; |
919 | struct snd_platform_data *pdata = NULL; | 919 | struct davinci_mcasp_pdata *pdata = NULL; |
920 | const struct of_device_id *match = | 920 | const struct of_device_id *match = |
921 | of_match_device(mcasp_dt_ids, &pdev->dev); | 921 | of_match_device(mcasp_dt_ids, &pdev->dev); |
922 | struct of_phandle_args dma_spec; | 922 | struct of_phandle_args dma_spec; |
@@ -929,7 +929,7 @@ static struct snd_platform_data *davinci_mcasp_set_pdata_from_of( | |||
929 | pdata = pdev->dev.platform_data; | 929 | pdata = pdev->dev.platform_data; |
930 | return pdata; | 930 | return pdata; |
931 | } else if (match) { | 931 | } else if (match) { |
932 | pdata = (struct snd_platform_data *) match->data; | 932 | pdata = (struct davinci_mcasp_pdata*) match->data; |
933 | } else { | 933 | } else { |
934 | /* control shouldn't reach here. something is wrong */ | 934 | /* control shouldn't reach here. something is wrong */ |
935 | ret = -EINVAL; | 935 | ret = -EINVAL; |
@@ -1023,7 +1023,7 @@ static int davinci_mcasp_probe(struct platform_device *pdev) | |||
1023 | { | 1023 | { |
1024 | struct davinci_pcm_dma_params *dma_data; | 1024 | struct davinci_pcm_dma_params *dma_data; |
1025 | struct resource *mem, *ioarea, *res, *dat; | 1025 | struct resource *mem, *ioarea, *res, *dat; |
1026 | struct snd_platform_data *pdata; | 1026 | struct davinci_mcasp_pdata *pdata; |
1027 | struct davinci_mcasp *mcasp; | 1027 | struct davinci_mcasp *mcasp; |
1028 | int ret; | 1028 | int ret; |
1029 | 1029 | ||