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>
Showing
- drivers/mmc/host/sdhci-bcm2835.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-bcm2835.c
- drivers/mmc/host/sdhci-cns3xxx.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-cns3xxx.c
- drivers/mmc/host/sdhci-dove.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-dove.c
- drivers/mmc/host/sdhci-esdhc-imx.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-esdhc-imx.c
- drivers/mmc/host/sdhci-of-esdhc.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-of-esdhc.c
- drivers/mmc/host/sdhci-of-hlwd.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-of-hlwd.c
- drivers/mmc/host/sdhci-pci.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-pci.c
- drivers/mmc/host/sdhci-pltfm.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-pltfm.c
- drivers/mmc/host/sdhci-pxav2.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-pxav2.c
- drivers/mmc/host/sdhci-pxav3.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-pxav3.c
- drivers/mmc/host/sdhci-spear.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-spear.c
- drivers/mmc/host/sdhci-tegra.c 1 addition, 1 deletiondrivers/mmc/host/sdhci-tegra.c
Loading
Please register or sign in to comment