diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-28 15:09:38 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-11-30 12:34:50 +0100 |
commit | 4fe338c94986df105c3966a39b5a0af608762891 (patch) | |
tree | d4a90c39d68a2b5c554cbac63031bbba76291eee /drivers/spi/spi-dw.h | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-4fe338c94986df105c3966a39b5a0af608762891.tar.xz linux-4fe338c94986df105c3966a39b5a0af608762891.zip |
spi: dw-mid: constify dw_spi_dma_ops structure
The dw_spi_dma_ops structure is never modified, so declare it as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r-- | drivers/spi/spi-dw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h index 35589a270468..61bc3cbab38d 100644 --- a/drivers/spi/spi-dw.h +++ b/drivers/spi/spi-dw.h @@ -130,7 +130,7 @@ struct dw_spi { struct dma_chan *rxchan; unsigned long dma_chan_busy; dma_addr_t dma_addr; /* phy address of the Data register */ - struct dw_spi_dma_ops *dma_ops; + const struct dw_spi_dma_ops *dma_ops; void *dma_tx; void *dma_rx; |