Skip to content

Commit fa020e7

Browse files
Russell King - ARM LinuxVinod Koul
authored andcommitted
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>
1 parent f14c426 commit fa020e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/amba/pl08x.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ struct pl08x_dma_chan {
172172
int phychan_hold;
173173
struct tasklet_struct tasklet;
174174
char *name;
175-
struct pl08x_channel_data *cd;
175+
const struct pl08x_channel_data *cd;
176176
dma_addr_t src_addr;
177177
dma_addr_t dst_addr;
178178
u32 src_cctl;
@@ -205,7 +205,7 @@ struct pl08x_dma_chan {
205205
* @mem_buses: buses which memory can be accessed from: PL08X_AHB1 | PL08X_AHB2
206206
*/
207207
struct pl08x_platform_data {
208-
struct pl08x_channel_data *slave_channels;
208+
const struct pl08x_channel_data *slave_channels;
209209
unsigned int num_slave_channels;
210210
struct pl08x_channel_data memcpy_channel;
211211
int (*get_signal)(struct pl08x_dma_chan *);

0 commit comments

Comments
 (0)