diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-13 14:26:03 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 13:00:06 -0400 |
commit | 1db5eebf22f86a87c3fcbbb085a4abbcfd09ee7d (patch) | |
tree | 90eac2d5bfaa90c8065bbf42ffb6bf6ff55f1fd1 /drivers/mmc/host/sdhci-pltfm.c | |
parent | 91cf54feecf815bec0b6a8d6d9dbd0e219f2f2cc (diff) |
mmc: sdhci_pltfm: Constify sdhci_pltfm_data
The sdhci_pltfm_data struct is never modified within the sdhci_pltfm
module. So make the pdata parameter to sdhci_pltfm_init and
sdhci_pltfm_register const. This allows drivers to declare their
sdhci_pltfm_data struct as const.
This patch also makes the sdhci_pltfm_data declarations const where
possible.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pltfm.c')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 9db7b12d2084..3893fd6ae56e 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c | |||
@@ -115,7 +115,7 @@ void sdhci_get_of_property(struct platform_device *pdev) {} | |||
115 | EXPORT_SYMBOL_GPL(sdhci_get_of_property); | 115 | EXPORT_SYMBOL_GPL(sdhci_get_of_property); |
116 | 116 | ||
117 | struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, | 117 | struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, |
118 | struct sdhci_pltfm_data *pdata) | 118 | const struct sdhci_pltfm_data *pdata) |
119 | { | 119 | { |
120 | struct sdhci_host *host; | 120 | struct sdhci_host *host; |
121 | struct sdhci_pltfm_host *pltfm_host; | 121 | struct sdhci_pltfm_host *pltfm_host; |
@@ -202,7 +202,7 @@ void sdhci_pltfm_free(struct platform_device *pdev) | |||
202 | EXPORT_SYMBOL_GPL(sdhci_pltfm_free); | 202 | EXPORT_SYMBOL_GPL(sdhci_pltfm_free); |
203 | 203 | ||
204 | int sdhci_pltfm_register(struct platform_device *pdev, | 204 | int sdhci_pltfm_register(struct platform_device *pdev, |
205 | struct sdhci_pltfm_data *pdata) | 205 | const struct sdhci_pltfm_data *pdata) |
206 | { | 206 | { |
207 | struct sdhci_host *host; | 207 | struct sdhci_host *host; |
208 | int ret = 0; | 208 | int ret = 0; |