Commit 5e3bcf30 authored by Mike Frysinger's avatar Mike Frysinger

Blackfin: dma: constify MMR pointer array

The array of pointers is never written, so constify it.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 9346dba5
...@@ -116,7 +116,7 @@ void blackfin_dma_resume(void); ...@@ -116,7 +116,7 @@ void blackfin_dma_resume(void);
* DMA API's * DMA API's
*******************************************************************************/ *******************************************************************************/
extern struct dma_channel dma_ch[MAX_DMA_CHANNELS]; 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); extern int channel2irq(unsigned int channel);
static inline void set_dma_start_addr(unsigned int channel, unsigned long addr) static inline void set_dma_start_addr(unsigned int channel, unsigned long addr)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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 *) DMA0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_NEXT_DESC_PTR, (struct dma_register *) DMA1_NEXT_DESC_PTR,
(struct dma_register *) DMA2_NEXT_DESC_PTR, (struct dma_register *) DMA2_NEXT_DESC_PTR,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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 *) DMA0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_NEXT_DESC_PTR, (struct dma_register *) DMA1_NEXT_DESC_PTR,
(struct dma_register *) DMA2_NEXT_DESC_PTR, (struct dma_register *) DMA2_NEXT_DESC_PTR,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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 *) DMA0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_NEXT_DESC_PTR, (struct dma_register *) DMA1_NEXT_DESC_PTR,
(struct dma_register *) DMA2_NEXT_DESC_PTR, (struct dma_register *) DMA2_NEXT_DESC_PTR,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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 *) DMA0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_NEXT_DESC_PTR, (struct dma_register *) DMA1_NEXT_DESC_PTR,
(struct dma_register *) DMA2_NEXT_DESC_PTR, (struct dma_register *) DMA2_NEXT_DESC_PTR,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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 *) DMA0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_NEXT_DESC_PTR, (struct dma_register *) DMA1_NEXT_DESC_PTR,
(struct dma_register *) DMA2_NEXT_DESC_PTR, (struct dma_register *) DMA2_NEXT_DESC_PTR,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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 *) DMA0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_NEXT_DESC_PTR, (struct dma_register *) DMA1_NEXT_DESC_PTR,
(struct dma_register *) DMA2_NEXT_DESC_PTR, (struct dma_register *) DMA2_NEXT_DESC_PTR,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#include <asm/dma.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_0_NEXT_DESC_PTR,
(struct dma_register *) DMA1_1_NEXT_DESC_PTR, (struct dma_register *) DMA1_1_NEXT_DESC_PTR,
(struct dma_register *) DMA1_2_NEXT_DESC_PTR, (struct dma_register *) DMA1_2_NEXT_DESC_PTR,
......
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