mmc: sdhci: Constify sdhci_ops structs where possible
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 13 Mar 2013 18:26:05 +0000 (19:26 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 17:00:51 +0000 (13:00 -0400)
commitc915568d99f12898aea4e15845cf891a8b5cc575
treed381fa42647a91ff9e42cf2aea994f280b2de19c
parentad1df8c25ecdf0bd2632c0825ecf8e8748c8154a
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>
12 files changed:
drivers/mmc/host/sdhci-bcm2835.c
drivers/mmc/host/sdhci-cns3xxx.c
drivers/mmc/host/sdhci-dove.c
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-of-esdhc.c
drivers/mmc/host/sdhci-of-hlwd.c
drivers/mmc/host/sdhci-pci.c
drivers/mmc/host/sdhci-pltfm.c
drivers/mmc/host/sdhci-pxav2.c
drivers/mmc/host/sdhci-pxav3.c
drivers/mmc/host/sdhci-spear.c
drivers/mmc/host/sdhci-tegra.c