summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-of-hlwd.c
diff options
context:
space:
mode:
authorLars-Peter Clausen2013-03-13 19:26:05 +0100
committerChris Ball2013-03-22 18:00:51 +0100
commitc915568d99f12898aea4e15845cf891a8b5cc575 (patch)
treed381fa42647a91ff9e42cf2aea994f280b2de19c /drivers/mmc/host/sdhci-of-hlwd.c
parentmmc: sdhci-pltfm: Constify the ops field of sdhci_pltfm_data struct (diff)
downloadkernel-qcow2-linux-c915568d99f12898aea4e15845cf891a8b5cc575.tar.gz
kernel-qcow2-linux-c915568d99f12898aea4e15845cf891a8b5cc575.tar.xz
kernel-qcow2-linux-c915568d99f12898aea4e15845cf891a8b5cc575.zip
mmc: sdhci: Constify sdhci_ops structs where possible
Basically all drivers can have sdhci_ops struct const, but almost none do. This patch constifies all sdhci_ops struct declarations where possible. The patch was auto-generated with the following coccinelle semantic patch: // <smpl> @r1@ identifier ops; identifier fld; @@ ops.fld = ...; @disable optional_qualifier@ identifier ops != r1.ops; @@ static +const struct sdhci_ops ops = { ... }; // </smpl> 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-of-hlwd.c')
-rw-r--r--drivers/mmc/host/sdhci-of-hlwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-of-hlwd.c b/drivers/mmc/host/sdhci-of-hlwd.c
index 7ea5c02268df..200a6a9fa805 100644
--- a/drivers/mmc/host/sdhci-of-hlwd.c
+++ b/drivers/mmc/host/sdhci-of-hlwd.c
@@ -51,7 +51,7 @@ static void sdhci_hlwd_writeb(struct sdhci_host *host, u8 val, int reg)
udelay(SDHCI_HLWD_WRITE_DELAY);
}
-static struct sdhci_ops sdhci_hlwd_ops = {
+static const struct sdhci_ops sdhci_hlwd_ops = {
.read_l = sdhci_be32bs_readl,
.read_w = sdhci_be32bs_readw,
.read_b = sdhci_be32bs_readb,