diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-07-21 12:13:07 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2011-07-26 06:03:28 -0400 |
commit | fa020e7d046436cb6642b23dc95012a3064d77e2 (patch) | |
tree | 64ba4ee3027ac48ac80b0671905cd116bd261881 /include/linux/amba/pl08x.h | |
parent | f14c426c723634d223344ad820997d92a3e355b6 (diff) |
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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/amba/pl08x.h')
-rw-r--r-- | include/linux/amba/pl08x.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h index 47cfe31e5c35..e6e28f37d8ec 100644 --- a/include/linux/amba/pl08x.h +++ b/include/linux/amba/pl08x.h | |||
@@ -172,7 +172,7 @@ struct pl08x_dma_chan { | |||
172 | int phychan_hold; | 172 | int phychan_hold; |
173 | struct tasklet_struct tasklet; | 173 | struct tasklet_struct tasklet; |
174 | char *name; | 174 | char *name; |
175 | struct pl08x_channel_data *cd; | 175 | const struct pl08x_channel_data *cd; |
176 | dma_addr_t src_addr; | 176 | dma_addr_t src_addr; |
177 | dma_addr_t dst_addr; | 177 | dma_addr_t dst_addr; |
178 | u32 src_cctl; | 178 | u32 src_cctl; |
@@ -205,7 +205,7 @@ struct pl08x_dma_chan { | |||
205 | * @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2 | 205 | * @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2 |
206 | */ | 206 | */ |
207 | struct pl08x_platform_data { | 207 | struct pl08x_platform_data { |
208 | struct pl08x_channel_data *slave_channels; | 208 | const struct pl08x_channel_data *slave_channels; |
209 | unsigned int num_slave_channels; | 209 | unsigned int num_slave_channels; |
210 | struct pl08x_channel_data memcpy_channel; | 210 | struct pl08x_channel_data memcpy_channel; |
211 | int (*get_signal)(struct pl08x_dma_chan *); | 211 | int (*get_signal)(struct pl08x_dma_chan *); |