diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-17 16:29:07 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-20 17:35:50 -0300 |
commit | 818ca4711eb8ec064c1cd5d7657f95ed6bc2bbed (patch) | |
tree | 15c4f9fe180ca13b56340a8c1fb4c7858a125314 /drivers/media/video/c-qcam.c | |
parent | f7518bd2d9ecad8c404c300e7872f7c2ab4961ad (diff) | |
download | talos-obmc-linux-818ca4711eb8ec064c1cd5d7657f95ed6bc2bbed.tar.gz talos-obmc-linux-818ca4711eb8ec064c1cd5d7657f95ed6bc2bbed.zip |
V4L/DVB (5860): Use msecs_to_jiffies instead of HZ on some webcam drivers
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/c-qcam.c')
-rw-r--r-- | drivers/media/video/c-qcam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/c-qcam.c b/drivers/media/video/c-qcam.c index 925ff17efbbc..f76c6a6c3766 100644 --- a/drivers/media/video/c-qcam.c +++ b/drivers/media/video/c-qcam.c @@ -95,7 +95,7 @@ static unsigned int qcam_await_ready1(struct qcam_device *qcam, unsigned long oldjiffies = jiffies; unsigned int i; - for (oldjiffies = jiffies; (jiffies - oldjiffies) < (HZ/25); ) + for (oldjiffies = jiffies; (jiffies - oldjiffies) < msecs_to_jiffies(40); ) if (qcam_ready1(qcam) == value) return 0; @@ -120,7 +120,7 @@ static unsigned int qcam_await_ready2(struct qcam_device *qcam, int value) unsigned long oldjiffies = jiffies; unsigned int i; - for (oldjiffies = jiffies; (jiffies - oldjiffies) < (HZ/25); ) + for (oldjiffies = jiffies; (jiffies - oldjiffies) < msecs_to_jiffies(40); ) if (qcam_ready2(qcam) == value) return 0; |