aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tvaudio.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-07-17 15:25:38 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-20 16:35:49 -0400
commit09df5cbe46511611410274f09571ada229231ddb (patch)
tree57a20892604a12785a883654c248b95d096c47b9 /drivers/media/video/tvaudio.c
parenta2d66a37c743ba201e85c93c4ec29d58ca94b728 (diff)
V4L/DVB (5858): Use msecs_to_jiffies instead of HZ on media/video I2C drivers
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tvaudio.c')
-rw-r--r--drivers/media/video/tvaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index 9da338dc4f3b..cffb011590e3 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -290,7 +290,7 @@ static int chip_thread(void *data)
290 desc->checkmode(chip); 290 desc->checkmode(chip);
291 291
292 /* schedule next check */ 292 /* schedule next check */
293 mod_timer(&chip->wt, jiffies+2*HZ); 293 mod_timer(&chip->wt, jiffies+msecs_to_jiffies(2000));
294 } 294 }
295 295
296 v4l_dbg(1, debug, &chip->c, "%s: thread exiting\n", chip->c.name); 296 v4l_dbg(1, debug, &chip->c, "%s: thread exiting\n", chip->c.name);
@@ -1770,7 +1770,7 @@ static int chip_command(struct i2c_client *client,
1770 desc->setmode(chip,VIDEO_SOUND_MONO); 1770 desc->setmode(chip,VIDEO_SOUND_MONO);
1771 if (chip->prevmode != VIDEO_SOUND_MONO) 1771 if (chip->prevmode != VIDEO_SOUND_MONO)
1772 chip->prevmode = -1; /* reset previous mode */ 1772 chip->prevmode = -1; /* reset previous mode */
1773 mod_timer(&chip->wt, jiffies+2*HZ); 1773 mod_timer(&chip->wt, jiffies+msecs_to_jiffies(2000));
1774 /* the thread will call checkmode() later */ 1774 /* the thread will call checkmode() later */
1775 } 1775 }
1776 break; 1776 break;