diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-04 02:33:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:58 -0400 |
commit | d45b9b8ab43c8973a9630ac54f4ede6c3e009f9e (patch) | |
tree | d5937a21d2d7520cc937a93ce7caa8665a96303f /drivers/media/dvb/ttpci | |
parent | 2bb87c24d7d5639bff65b41b1306542d6d2bf7d0 (diff) |
V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings
Fix sparse warnings. None are serious, but cutting down on these helps find
future serious sparse warnings/errors.
Redid the av7710.c patch based on a suggestion by Oliver Endriss.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r-- | drivers/media/dvb/ttpci/av7110.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 404108f09d77..c7c770c28988 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -381,9 +381,9 @@ static inline void start_debi_dma(struct av7110 *av7110, int dir, | |||
381 | irdebi(av7110, DEBISWAB, addr, 0, len); | 381 | irdebi(av7110, DEBISWAB, addr, 0, len); |
382 | } | 382 | } |
383 | 383 | ||
384 | static void debiirq(unsigned long data) | 384 | static void debiirq(unsigned long cookie) |
385 | { | 385 | { |
386 | struct av7110 *av7110 = (struct av7110 *) data; | 386 | struct av7110 *av7110 = (struct av7110 *)cookie; |
387 | int type = av7110->debitype; | 387 | int type = av7110->debitype; |
388 | int handle = (type >> 8) & 0x1f; | 388 | int handle = (type >> 8) & 0x1f; |
389 | unsigned int xfer = 0; | 389 | unsigned int xfer = 0; |
@@ -492,9 +492,9 @@ debi_done: | |||
492 | } | 492 | } |
493 | 493 | ||
494 | /* irq from av7110 firmware writing the mailbox register in the DPRAM */ | 494 | /* irq from av7110 firmware writing the mailbox register in the DPRAM */ |
495 | static void gpioirq(unsigned long data) | 495 | static void gpioirq(unsigned long cookie) |
496 | { | 496 | { |
497 | struct av7110 *av7110 = (struct av7110 *) data; | 497 | struct av7110 *av7110 = (struct av7110 *)cookie; |
498 | u32 rxbuf, txbuf; | 498 | u32 rxbuf, txbuf; |
499 | int len; | 499 | int len; |
500 | 500 | ||
@@ -1260,9 +1260,9 @@ static int budget_stop_feed(struct dvb_demux_feed *feed) | |||
1260 | return status; | 1260 | return status; |
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | static void vpeirq(unsigned long data) | 1263 | static void vpeirq(unsigned long cookie) |
1264 | { | 1264 | { |
1265 | struct av7110 *budget = (struct av7110 *) data; | 1265 | struct av7110 *budget = (struct av7110 *)cookie; |
1266 | u8 *mem = (u8 *) (budget->grabbing); | 1266 | u8 *mem = (u8 *) (budget->grabbing); |
1267 | u32 olddma = budget->ttbp; | 1267 | u32 olddma = budget->ttbp; |
1268 | u32 newdma = saa7146_read(budget->dev, PCI_VDP3); | 1268 | u32 newdma = saa7146_read(budget->dev, PCI_VDP3); |