diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-13 19:26:03 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 18:00:06 +0100 |
commit | 1db5eebf22f86a87c3fcbbb085a4abbcfd09ee7d (patch) | |
tree | 90eac2d5bfaa90c8065bbf42ffb6bf6ff55f1fd1 /drivers/mmc/host/sdhci-esdhc-imx.c | |
parent | mmc: at91/avr32/atmel-mci: fix DMA-channel leak on module unload (diff) | |
download | linux-1db5eebf22f86a87c3fcbbb085a4abbcfd09ee7d.tar.xz linux-1db5eebf22f86a87c3fcbbb085a4abbcfd09ee7d.zip |
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-esdhc-imx.c')
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 78ac00227c1a..68c301d12db4 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -412,7 +412,7 @@ static struct sdhci_ops sdhci_esdhc_ops = { .platform_bus_width = esdhc_pltfm_bus_width, }; -static struct sdhci_pltfm_data sdhci_esdhc_imx_pdata = { +static const struct sdhci_pltfm_data sdhci_esdhc_imx_pdata = { .quirks = ESDHC_DEFAULT_QUIRKS | SDHCI_QUIRK_NO_HISPD_BIT | SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC | SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |