aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-cns3xxx.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-03-13 14:26:03 -0400
committerChris Ball <cjb@laptop.org>2013-03-22 13:00:06 -0400
commit1db5eebf22f86a87c3fcbbb085a4abbcfd09ee7d (patch)
tree90eac2d5bfaa90c8065bbf42ffb6bf6ff55f1fd1 /drivers/mmc/host/sdhci-cns3xxx.c
parent91cf54feecf815bec0b6a8d6d9dbd0e219f2f2cc (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-cns3xxx.c')
-rw-r--r--drivers/mmc/host/sdhci-cns3xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-cns3xxx.c b/drivers/mmc/host/sdhci-cns3xxx.c
index 30bfdc4ae52a..15a936ae08b8 100644
--- a/drivers/mmc/host/sdhci-cns3xxx.c
+++ b/drivers/mmc/host/sdhci-cns3xxx.c
@@ -85,7 +85,7 @@ static struct sdhci_ops sdhci_cns3xxx_ops = {
85 .set_clock = sdhci_cns3xxx_set_clock, 85 .set_clock = sdhci_cns3xxx_set_clock,
86}; 86};
87 87
88static struct sdhci_pltfm_data sdhci_cns3xxx_pdata = { 88static const struct sdhci_pltfm_data sdhci_cns3xxx_pdata = {
89 .ops = &sdhci_cns3xxx_ops, 89 .ops = &sdhci_cns3xxx_ops,
90 .quirks = SDHCI_QUIRK_BROKEN_DMA | 90 .quirks = SDHCI_QUIRK_BROKEN_DMA |
91 SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | 91 SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK |