linux/drivers/media/video/ivtv
Julia Lawall 168c626cb8 V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc
The functions time_before, time_before_eq, time_after, and time_after_eq
are more robust for comparing jiffies against other values.

A simplified version of the semantic patch making this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@ change_compare_np @
expression E;
@@

(
- jiffies <= E
+ time_before_eq(jiffies,E)
|
- jiffies >= E
+ time_after_eq(jiffies,E)
|
- jiffies < E
+ time_before(jiffies,E)
|
- jiffies > E
+ time_after(jiffies,E)
)

@ include depends on change_compare_np @
@@

@ no_include depends on !include && change_compare_np @
@@

  #include <linux/...>
+ #include <linux/jiffies.h>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-24 14:09:40 -03:00
..
ivtv-cards.c V4L/DVB (7339): ivtv: add support for Japanese variant of the Adaptec AVC-2410 2008-04-24 14:07:49 -03:00
ivtv-cards.h V4L/DVB (7339): ivtv: add support for Japanese variant of the Adaptec AVC-2410 2008-04-24 14:07:49 -03:00
ivtv-controls.c V4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv-routing.c 2007-10-09 22:06:47 -03:00
ivtv-controls.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-driver.c V4L/DVB (7535): saa717x: add new audio/video decoder i2c driver 2008-04-24 14:08:00 -03:00
ivtv-driver.h V4L/DVB (7243): ivtv: yuv framebuffer tracking 2008-04-24 14:07:44 -03:00
ivtv-fileops.c V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc 2008-04-24 14:09:40 -03:00
ivtv-fileops.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-firmware.c V4L/DVB (7242): ivtv: fix for yuv filter table check 2008-03-20 12:38:57 -03:00
ivtv-firmware.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-gpio.c V4L/DVB (6896): ivtv: add XC2028 support for Club3D cards 2008-01-25 19:04:15 -02:00
ivtv-gpio.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-i2c.c V4L/DVB (7534): ivtv: the upd* modules have to be probed to properly autodetect some cards 2008-04-24 14:08:00 -03:00
ivtv-i2c.h V4L/DVB (6765): ivtv: convert to bus-based i2c API 2008-01-25 19:03:24 -02:00
ivtv-ioctl.c V4L/DVB (7558): videobuf: Improve command output for debug purposes 2008-04-24 14:08:48 -03:00
ivtv-ioctl.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-irq.c V4L/DVB (7245): ivtv: start timer for each DMA transfer 2008-04-24 14:07:44 -03:00
ivtv-irq.h V4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv-routing.c 2007-10-09 22:06:47 -03:00
ivtv-mailbox.c V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc 2008-04-24 14:09:40 -03:00
ivtv-mailbox.h V4L/DVB (6861): cx2341x: command argument should be u32 instead of int 2008-01-25 19:04:04 -02:00
ivtv-queue.c V4L/DVB (7378): cleanup variable initialization 2008-04-24 14:07:51 -03:00
ivtv-queue.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-routing.c V4L/DVB (6488): ivtv: add ASUS Falcon2 support 2008-01-25 19:01:50 -02:00
ivtv-routing.h V4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv-routing.c 2007-10-09 22:06:47 -03:00
ivtv-streams.c V4L/DVB (7591): drivers/media/video: use time_before, time_before_eq, etc 2008-04-24 14:09:40 -03:00
ivtv-streams.h V4L/DVB (6342): ivtv: fix circular locking (bug 9037) 2007-10-22 12:01:47 -02:00
ivtv-udma.c SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
ivtv-udma.h V4L/DVB (6091): ivtv: header cleanup 2007-10-09 22:06:44 -03:00
ivtv-vbi.c V4L/DVB (6116): ivtv: VBI cleanups and fixes 2007-10-09 22:07:14 -03:00
ivtv-vbi.h V4L/DVB (6116): ivtv: VBI cleanups and fixes 2007-10-09 22:07:14 -03:00
ivtv-version.h V4L/DVB (6762): ivtv: update version number to 1.2 2008-01-25 19:03:22 -02:00
ivtv-yuv.c V4L/DVB (7243): ivtv: yuv framebuffer tracking 2008-04-24 14:07:44 -03:00
ivtv-yuv.h V4L/DVB (6717): ivtv: Initial merge of video48 yuv handling into the IVTV_IOC_DMA_FRAME framework 2008-01-25 19:03:11 -02:00
ivtvfb.c V4L/DVB (6776): ivtv: Some general fixes 2008-01-25 19:03:26 -02:00
Kconfig V4L/DVB (7535): saa717x: add new audio/video decoder i2c driver 2008-04-24 14:08:00 -03:00
Makefile V4L/DVB (6944): Fix in-kernel ivtv compilation 2008-01-25 19:04:30 -02:00