From: Lars-Peter Clausen Date: Wed, 13 Mar 2013 18:26:04 +0000 (+0100) Subject: mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ad1df8c25ecdf0bd2632c0825ecf8e8748c8154a;p=linux-beck.git mmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct 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 Acked-by: Shawn Guo Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci-pltfm.h b/drivers/mmc/host/sdhci-pltfm.h index a3bfc1e11539..1210ed1b0c60 100644 --- a/drivers/mmc/host/sdhci-pltfm.h +++ b/drivers/mmc/host/sdhci-pltfm.h @@ -16,7 +16,7 @@ #include "sdhci.h" struct sdhci_pltfm_data { - struct sdhci_ops *ops; + const struct sdhci_ops *ops; unsigned int quirks; };