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-bcm2835.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-bcm2835.c')
-rw-r--r-- | drivers/mmc/host/sdhci-bcm2835.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-bcm2835.c b/drivers/mmc/host/sdhci-bcm2835.c index 8ffea05152c6..29e9e4008885 100644 --- a/drivers/mmc/host/sdhci-bcm2835.c +++ b/drivers/mmc/host/sdhci-bcm2835.c | |||
@@ -135,7 +135,7 @@ static struct sdhci_ops bcm2835_sdhci_ops = { | |||
135 | .get_min_clock = bcm2835_sdhci_get_min_clock, | 135 | .get_min_clock = bcm2835_sdhci_get_min_clock, |
136 | }; | 136 | }; |
137 | 137 | ||
138 | static struct sdhci_pltfm_data bcm2835_sdhci_pdata = { | 138 | static const struct sdhci_pltfm_data bcm2835_sdhci_pdata = { |
139 | .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | | 139 | .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | |
140 | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, | 140 | SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, |
141 | .ops = &bcm2835_sdhci_ops, | 141 | .ops = &bcm2835_sdhci_ops, |