Blackfin: dma: constify MMR pointer array
authorMike Frysinger <vapier@gentoo.org>
Mon, 25 Oct 2010 18:11:09 +0000 (18:11 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2011 12:18:05 +0000 (07:18 -0500)
The array of pointers is never written, so constify it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/dma.h
arch/blackfin/mach-bf518/dma.c
arch/blackfin/mach-bf527/dma.c
arch/blackfin/mach-bf533/dma.c
arch/blackfin/mach-bf537/dma.c
arch/blackfin/mach-bf538/dma.c
arch/blackfin/mach-bf548/dma.c
arch/blackfin/mach-bf561/dma.c

index be862e7de7840156dcadb75d09a58a384e662238..d9dbc1a5353440bb6dc2e12e8fed21e25d034fb9 100644 (file)
@@ -116,7 +116,7 @@ void blackfin_dma_resume(void);
 *      DMA API's
 *******************************************************************************/
 extern struct dma_channel dma_ch[MAX_DMA_CHANNELS];
-extern struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS];
+extern struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS];
 extern int channel2irq(unsigned int channel);
 
 static inline void set_dma_start_addr(unsigned int channel, unsigned long addr)
index 78b43605a0b55ebf7a3b628c47fe85cf06ef67ef..bcd1fbc8c543a18b409eda532f6b4ec027efbffe 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_NEXT_DESC_PTR,
        (struct dma_register *) DMA2_NEXT_DESC_PTR,
index 7bc7577d6c4f3b0b2c6562fc6c41d564572c6684..1fabdefea73a3b72d8d2687327d1e1d14c30c419 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_NEXT_DESC_PTR,
        (struct dma_register *) DMA2_NEXT_DESC_PTR,
index 4a14a46a9a68dc589e138e82280dd809f6b78c56..1f5988d431396816e34bc8c9042453ee655a9a81 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_NEXT_DESC_PTR,
        (struct dma_register *) DMA2_NEXT_DESC_PTR,
index 5c8c4ed517bb77fc02c5268299008d2b727b0449..5c62e99c9fac187c5cd68a0d07a0bddf6ce700e5 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_NEXT_DESC_PTR,
        (struct dma_register *) DMA2_NEXT_DESC_PTR,
index d06d0302f735dbc0a875703a8681a8fbf13cec4b..cce8ef5a5cecd552d868d556e97d79e18a2f9ac6 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_NEXT_DESC_PTR,
        (struct dma_register *) DMA2_NEXT_DESC_PTR,
index 888b9cc0b822da32b1f24b5b493974dc93c17f5a..69ead33cbf9159f7eab6754e0e66960265a9123e 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_NEXT_DESC_PTR,
        (struct dma_register *) DMA2_NEXT_DESC_PTR,
index cd308b9a12bb4597e67f727542f8e3416ae1f436..8ffdd6b4a2422155ca250f60ec466cbb756241f7 100644 (file)
@@ -11,7 +11,7 @@
 #include <asm/blackfin.h>
 #include <asm/dma.h>
 
-struct dma_register *dma_io_base_addr[MAX_DMA_CHANNELS] = {
+struct dma_register * const dma_io_base_addr[MAX_DMA_CHANNELS] = {
        (struct dma_register *) DMA1_0_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_1_NEXT_DESC_PTR,
        (struct dma_register *) DMA1_2_NEXT_DESC_PTR,