]> git.karo-electronics.de Git - linux-beck.git/commitdiff
S3C: DMA: Change argument of s3c2410_dma_devconfig
authorJassi Brar <jassi.brar@samsung.com>
Mon, 17 May 2010 01:35:29 +0000 (10:35 +0900)
committerBen Dooks <ben-linux@fluff.org>
Mon, 17 May 2010 07:43:49 +0000 (16:43 +0900)
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>
arch/arm/mach-s3c64xx/dma.c
arch/arm/plat-s3c24xx/dma.c
arch/arm/plat-samsung/include/plat/dma.h

index 33ccf7bf766a961d35eb71cbae7107547bcf913e..5567e037b0d15a9d890c31c7a05a57deb9baf7c7 100644 (file)
@@ -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)
 {
index 93827b3d4e84645bbc34212578140978f7014642..6ad274e7593d578a23161f30eba62d88b396d5f5 100644 (file)
@@ -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)
 {
index 7584d751ed513df477cdece38fa83d6a75473beb..2e8f8c6560d72128c92cdfa16b4f908565865216 100644 (file)
@@ -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
  *