summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2017-08-07 23:15:03 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 15:01:54 +0300
commit101540680976fc4f30739edd84a134352e3aeab8 (patch)
treeb9a876e37038aea7b47db6a52cc387d5060e0a4d /drivers/mmc
parent3671967641c50820cf530f2c4cd358bb817a6c8a (diff)
downloadlinux-101540680976fc4f30739edd84a134352e3aeab8.tar.xz
mmc: renesas-sdhi: constify renesas_sdhi_internal_dmac_dma_ops
The structure renesas_sdhi_internal_dmac_dma_ops is only passed as the second argument to renesas_sdhi_probe, which is const, so renesas_sdhi_internal_dmac_dma_ops can be const too. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/renesas_sdhi_internal_dmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/renesas_sdhi_internal_dmac.c b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
index 6717003888e2..3a8257742040 100644
--- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
+++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
@@ -233,7 +233,7 @@ renesas_sdhi_internal_dmac_release_dma(struct tmio_mmc_host *host)
host->chan_rx = host->chan_tx = NULL;
}
-static struct tmio_mmc_dma_ops renesas_sdhi_internal_dmac_dma_ops = {
+static const struct tmio_mmc_dma_ops renesas_sdhi_internal_dmac_dma_ops = {
.start = renesas_sdhi_internal_dmac_start_dma,
.enable = renesas_sdhi_internal_dmac_enable_dma,
.request = renesas_sdhi_internal_dmac_request_dma,