Commit 5e3bcf30d655c2e277c77b523347685d06bb9d31
1 parent
9346dba556
Exists in
master
and in
39 other branches
Blackfin: dma: constify MMR pointer array
The array of pointers is never written, so constify it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Showing 8 changed files with 8 additions and 8 deletions Side-by-side Diff
arch/blackfin/include/asm/dma.h
... | ... | @@ -116,7 +116,7 @@ |
116 | 116 | * DMA API's |
117 | 117 | *******************************************************************************/ |
118 | 118 | extern struct dma_channel dma_ch[MAX_DMA_CHANNELS]; |
119 | -extern struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS]; | |
119 | +extern struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS]; | |
120 | 120 | extern int channel2irq(unsigned int channel); |
121 | 121 | |
122 | 122 | static inline void set_dma_start_addr(unsigned int channel, unsigned long addr) |
arch/blackfin/mach-bf518/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA2_NEXT_DESC_PTR, |
arch/blackfin/mach-bf527/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA2_NEXT_DESC_PTR, |
arch/blackfin/mach-bf533/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA2_NEXT_DESC_PTR, |
arch/blackfin/mach-bf537/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA2_NEXT_DESC_PTR, |
arch/blackfin/mach-bf538/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA2_NEXT_DESC_PTR, |
arch/blackfin/mach-bf548/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA2_NEXT_DESC_PTR, |
arch/blackfin/mach-bf561/dma.c
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | #include <asm/blackfin.h> |
12 | 12 | #include <asm/dma.h> |
13 | 13 | |
14 | -struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
14 | +struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = { | |
15 | 15 | (struct dma_register *) DMA1_0_NEXT_DESC_PTR, |
16 | 16 | (struct dma_register *) DMA1_1_NEXT_DESC_PTR, |
17 | 17 | (struct dma_register *) DMA1_2_NEXT_DESC_PTR, |