瀏覽代碼

S3C: DMA: Change argument of s3c2410_dma_devconfig

All other functions have the channel argument of type 'unsigned int'
the s3c2410_dma_devconfig also accept the same value as argument but
treat it as type 'int'. Remove this anomaly by make it 'unsigned int'.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Jassi Brar 15 年之前
父節點
當前提交
14894b9b83
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      arch/arm/mach-s3c64xx/dma.c
  2. 1 1
      arch/arm/plat-s3c24xx/dma.c
  3. 2 2
      arch/arm/plat-samsung/include/plat/dma.h

+ 1 - 1
arch/arm/mach-s3c64xx/dma.c

@@ -414,7 +414,7 @@ err_buff:
 EXPORT_SYMBOL(s3c2410_dma_enqueue);
 
 
-int s3c2410_dma_devconfig(int channel,
+int s3c2410_dma_devconfig(unsigned int channel,
 			  enum s3c2410_dmasrc source,
 			  unsigned long devaddr)
 {

+ 1 - 1
arch/arm/plat-s3c24xx/dma.c

@@ -1104,7 +1104,7 @@ EXPORT_SYMBOL(s3c2410_dma_config);
  * devaddr:   physical address of the source
 */
 
-int s3c2410_dma_devconfig(int channel,
+int s3c2410_dma_devconfig(unsigned int channel,
 			  enum s3c2410_dmasrc source,
 			  unsigned long devaddr)
 {

+ 2 - 2
arch/arm/plat-samsung/include/plat/dma.h

@@ -110,8 +110,8 @@ extern int s3c2410_dma_config(unsigned int channel, int xferunit);
  * configure the device we're talking to
 */
 
-extern int s3c2410_dma_devconfig(int channel, enum s3c2410_dmasrc source,
-				 unsigned long devaddr);
+extern int s3c2410_dma_devconfig(unsigned int channel,
+		enum s3c2410_dmasrc source, unsigned long devaddr);
 
 /* s3c2410_dma_getposition
  *