mmc: sdhci-brcmstb: constify sdhci_pltfm_data structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 7 Aug 2017 09:50:44 +0000 (11:50 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:53 +0000 (14:01 +0200)
The sdhci_pltfm_data structure is only passed as the second argument
of sdhci_pltfm_init, which is const, so the sdhci_pltfm_data structure
can be const as well.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-brcmstb.c

index e2f638338e8fe0476a7a69404fb9341f493985da..3a64c13f2412cf5047c1233a544449d2ad275ce5 100644 (file)
@@ -63,7 +63,7 @@ static const struct sdhci_ops sdhci_brcmstb_ops = {
        .set_uhs_signaling = sdhci_set_uhs_signaling,
 };
 
-static struct sdhci_pltfm_data sdhci_brcmstb_pdata = {
+static const struct sdhci_pltfm_data sdhci_brcmstb_pdata = {
        .ops = &sdhci_brcmstb_ops,
 };