提交 10154068 编写于 作者: J Julia Lawall 提交者: Ulf Hansson

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 36719676
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册