diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-13 15:23:04 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-08-21 18:26:12 +0200 |
commit | e43341ca85e44204424467fcc3d7f38d59338473 (patch) | |
tree | 7236c2802df40ae429461e904c56090f8f5dc57e /drivers/dma/ste_dma40.c | |
parent | dmaengine: usb-dmac: Add soctype for R-Car M3-W (diff) | |
download | linux-e43341ca85e44204424467fcc3d7f38d59338473.tar.xz linux-e43341ca85e44204424467fcc3d7f38d59338473.zip |
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: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ste_dma40.c')
-rw-r--r-- | drivers/dma/ste_dma40.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index c3052fbfd092..f4fab4138c0b 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -79,7 +79,7 @@ static int dma40_memcpy_channels[] = { }; /* 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, .dir = DMA_MEM_TO_MEM, @@ -93,7 +93,7 @@ static struct stedma40_chan_cfg dma40_memcpy_conf_phy = { }; /* 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, .dir = DMA_MEM_TO_MEM, |