]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: add const to some function prototype and struct dma_channel
authorMichael McTernan <mmcternan@airvana.com>
Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)
committerBryan Wu <cooloney@kernel.org>
Wed, 7 Jan 2009 15:14:38 +0000 (23:14 +0800)
Signed-off-by: Michael McTernan <mmcternan@airvana.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/include/asm/dma.h
arch/blackfin/kernel/bfin_dma_5xx.c

index 9befcbae00b90d2e1a0e089f0de02e38a8059a3d..3aa4dd3e5fe80a18476b8532c5f942aa69dbba7b 100644 (file)
@@ -135,7 +135,7 @@ typedef irqreturn_t(*dma_interrupt_t) (int irq, void *dev_id);
 
 struct dma_channel {
        struct mutex dmalock;
-       char *device_id;
+       const char *device_id;
        enum dma_chan_status chan_status;
        struct dma_register *regs;
        struct dmasg *sg;               /* large mode descriptor */
@@ -191,7 +191,7 @@ void free_dma(unsigned int channel);
 int dma_channel_active(unsigned int channel); /* check if a channel is in use */
 void disable_dma(unsigned int channel);
 void enable_dma(unsigned int channel);
-int request_dma(unsigned int channel, char *device_id);
+int request_dma(unsigned int channel, const char *device_id);
 int set_dma_callback(unsigned int channel, dma_interrupt_t callback,
                     void *data);
 void dma_disable_irq(unsigned int channel);
index 2625aa20a92cec8c0681f244b47c7f8f1ce9c2f1..22bce17bbb0209f13e5e2a83423262f09c3cffae 100644 (file)
@@ -116,7 +116,7 @@ late_initcall(proc_dma_init);
 /*------------------------------------------------------------------------------
  *     Request the specific DMA channel from the system.
  *-----------------------------------------------------------------------------*/
-int request_dma(unsigned int channel, char *device_id)
+int request_dma(unsigned int channel, const char *device_id)
 {
        pr_debug("request_dma() : BEGIN \n");