提交 e43341ca 编写于 作者: B Bhumika Goyal 提交者: Vinod Koul

dmaengine: ste_dma40: make stedma40_chan_cfg const

Make these const as they are only used during a copy operation.
Done using Coccinelle.
Signed-off-by: NBhumika Goyal <bhumirks@gmail.com>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 2d166e66
...@@ -79,7 +79,7 @@ static int dma40_memcpy_channels[] = { ...@@ -79,7 +79,7 @@ static int dma40_memcpy_channels[] = {
}; };
/* Default configuration for physcial memcpy */ /* Default configuration for physcial memcpy */
static struct stedma40_chan_cfg dma40_memcpy_conf_phy = { static const struct stedma40_chan_cfg dma40_memcpy_conf_phy = {
.mode = STEDMA40_MODE_PHYSICAL, .mode = STEDMA40_MODE_PHYSICAL,
.dir = DMA_MEM_TO_MEM, .dir = DMA_MEM_TO_MEM,
...@@ -93,7 +93,7 @@ static struct stedma40_chan_cfg dma40_memcpy_conf_phy = { ...@@ -93,7 +93,7 @@ static struct stedma40_chan_cfg dma40_memcpy_conf_phy = {
}; };
/* Default configuration for logical memcpy */ /* Default configuration for logical memcpy */
static struct stedma40_chan_cfg dma40_memcpy_conf_log = { static const struct stedma40_chan_cfg dma40_memcpy_conf_log = {
.mode = STEDMA40_MODE_LOGICAL, .mode = STEDMA40_MODE_LOGICAL,
.dir = DMA_MEM_TO_MEM, .dir = DMA_MEM_TO_MEM,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册