mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 13 Mar 2013 18:26:04 +0000 (19:26 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 17:00:29 +0000 (13:00 -0400)
All users of the sdhci_ops struct in the sdhci core already treat it as
const.  The sdhci-pltfm code itself never actually looks at the ops field
of the sdhci_pltfm_data struct and merely passes it on to the sdhci core,
so make we can make it const in the sdhci_pltfm_data struct as well.
This allows us to declare sdhci_ops structs as const in drivers using
the sdhci-pltfm helper code.

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>
drivers/mmc/host/sdhci-pltfm.h

index a3bfc1e1153960e37d3ff8fdf411742d90e22ea9..1210ed1b0c605370e8f9d71fda633427ee1e4fed 100644 (file)
@@ -16,7 +16,7 @@
 #include "sdhci.h"
 
 struct sdhci_pltfm_data {
-       struct sdhci_ops *ops;
+       const struct sdhci_ops *ops;
        unsigned int quirks;
 };
 
This page took 0.025843 seconds and 5 git commands to generate.