Commit fa020e7d authored by Russell King - ARM Linux's avatar Russell King - ARM Linux Committed by Vinod Koul

DMA: PL08x: constify plchan->cd and plat->slave_channels

We no longer write to the channel data structure, so we can make it
const throughout the driver.
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent f14c426c
...@@ -172,7 +172,7 @@ struct pl08x_dma_chan { ...@@ -172,7 +172,7 @@ struct pl08x_dma_chan {
int phychan_hold; int phychan_hold;
struct tasklet_struct tasklet; struct tasklet_struct tasklet;
char *name; char *name;
struct pl08x_channel_data *cd; const struct pl08x_channel_data *cd;
dma_addr_t src_addr; dma_addr_t src_addr;
dma_addr_t dst_addr; dma_addr_t dst_addr;
u32 src_cctl; u32 src_cctl;
...@@ -205,7 +205,7 @@ struct pl08x_dma_chan { ...@@ -205,7 +205,7 @@ struct pl08x_dma_chan {
* @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2 * @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2
*/ */
struct pl08x_platform_data { struct pl08x_platform_data {
struct pl08x_channel_data *slave_channels; const struct pl08x_channel_data *slave_channels;
unsigned int num_slave_channels; unsigned int num_slave_channels;
struct pl08x_channel_data memcpy_channel; struct pl08x_channel_data memcpy_channel;
int (*get_signal)(struct pl08x_dma_chan *); int (*get_signal)(struct pl08x_dma_chan *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment