]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] saa7134: Remove some casting warnings
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Sep 2014 10:54:09 +0000 (07:54 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Sep 2014 19:13:47 +0000 (16:13 -0300)
drivers/media/pci/saa7134/saa7134-go7007.c:247:17: warning: incorrect type in argument 1 (different base types)
drivers/media/pci/saa7134/saa7134-go7007.c:247:17:    expected unsigned int [unsigned] val
drivers/media/pci/saa7134/saa7134-go7007.c:247:17:    got restricted __le32 [usertype] <noident>
drivers/media/pci/saa7134/saa7134-go7007.c:252:17: warning: incorrect type in argument 1 (different base types)
drivers/media/pci/saa7134/saa7134-go7007.c:252:17:    expected unsigned int [unsigned] val
drivers/media/pci/saa7134/saa7134-go7007.c:252:17:    got restricted __le32 [usertype] <noident>
drivers/media/pci/saa7134/saa7134-go7007.c:299:9: warning: incorrect type in argument 1 (different base types)
drivers/media/pci/saa7134/saa7134-go7007.c:299:9:    expected unsigned int [unsigned] val
drivers/media/pci/saa7134/saa7134-go7007.c:299:9:    got restricted __le32 [usertype] <noident>
drivers/media/pci/saa7134/saa7134-go7007.c:300:9: warning: incorrect type in argument 1 (different base types)
drivers/media/pci/saa7134/saa7134-go7007.c:300:9:    expected unsigned int [unsigned] val
drivers/media/pci/saa7134/saa7134-go7007.c:300:9:    got restricted __le32 [usertype] <noident>

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/saa7134/saa7134-go7007.c

index 3e9ca4821b8c0d5880ab091bc4684072f473b905..3ac987fb7606d4815f649def164a8349c22f6e6e 100644 (file)
@@ -244,12 +244,12 @@ static void saa7134_go7007_irq_ts_done(struct saa7134_dev *dev,
                dma_sync_single_for_cpu(&dev->pci->dev,
                                        saa->bottom_dma, PAGE_SIZE, DMA_FROM_DEVICE);
                go7007_parse_video_stream(go, saa->bottom, PAGE_SIZE);
-               saa_writel(SAA7134_RS_BA2(5), cpu_to_le32(saa->bottom_dma));
+               saa_writel(SAA7134_RS_BA2(5), saa->bottom_dma);
        } else {
                dma_sync_single_for_cpu(&dev->pci->dev,
                                        saa->top_dma, PAGE_SIZE, DMA_FROM_DEVICE);
                go7007_parse_video_stream(go, saa->top, PAGE_SIZE);
-               saa_writel(SAA7134_RS_BA1(5), cpu_to_le32(saa->top_dma));
+               saa_writel(SAA7134_RS_BA1(5), saa->top_dma);
        }
 }
 
@@ -296,8 +296,8 @@ static int saa7134_go7007_stream_start(struct go7007 *go)
        /* Enable video streaming mode */
        saa_writeb(SAA7134_GPIO_GPSTATUS2, GPIO_COMMAND_VIDEO);
 
-       saa_writel(SAA7134_RS_BA1(5), cpu_to_le32(saa->top_dma));
-       saa_writel(SAA7134_RS_BA2(5), cpu_to_le32(saa->bottom_dma));
+       saa_writel(SAA7134_RS_BA1(5), saa->top_dma);
+       saa_writel(SAA7134_RS_BA2(5), saa->bottom_dma);
        saa_writel(SAA7134_RS_PITCH(5), 128);
        saa_writel(SAA7134_RS_CONTROL(5), SAA7134_RS_CONTROL_BURST_MAX);