diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-13 14:26:04 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-03-22 13:00:29 -0400 |
commit | ad1df8c25ecdf0bd2632c0825ecf8e8748c8154a (patch) | |
tree | 9bef83c1632d7c5de73f88ec5b958fd94a72776d /drivers/mmc | |
parent | 1db5eebf22f86a87c3fcbbb085a4abbcfd09ee7d (diff) |
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 <lars@metafoo.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-pltfm.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
16 | #include "sdhci.h" | 16 | #include "sdhci.h" |
17 | 17 | ||
18 | struct sdhci_pltfm_data { | 18 | struct sdhci_pltfm_data { |
19 | struct sdhci_ops *ops; | 19 | const struct sdhci_ops *ops; |
20 | unsigned int quirks; | 20 | unsigned int quirks; |
21 | }; | 21 | }; |
22 | 22 | ||