mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
8005c49d9a
commit
4fe338c949
@ -283,7 +283,7 @@ static void mid_spi_dma_stop(struct dw_spi *dws)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dw_spi_dma_ops mid_dma_ops = {
|
static const struct dw_spi_dma_ops mid_dma_ops = {
|
||||||
.dma_init = mid_spi_dma_init,
|
.dma_init = mid_spi_dma_init,
|
||||||
.dma_exit = mid_spi_dma_exit,
|
.dma_exit = mid_spi_dma_exit,
|
||||||
.dma_setup = mid_spi_dma_setup,
|
.dma_setup = mid_spi_dma_setup,
|
||||||
|
@ -130,7 +130,7 @@ struct dw_spi {
|
|||||||
struct dma_chan *rxchan;
|
struct dma_chan *rxchan;
|
||||||
unsigned long dma_chan_busy;
|
unsigned long dma_chan_busy;
|
||||||
dma_addr_t dma_addr; /* phy address of the Data register */
|
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_tx;
|
||||||
void *dma_rx;
|
void *dma_rx;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user