V4L/DVB (5684): V4L: ir-kbd-i2c - switch to using msecs_to_jiffies()
authorDmitry Torokhov <dtor@insightbb.com>
Mon, 21 May 2007 14:51:11 +0000 (11:51 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 18 Jul 2007 17:23:36 +0000 (14:23 -0300)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ir-kbd-i2c.c

index ed92b6f7187a6eac7b3e5da338b20995abc2a0bb..cd84d060b8e13bdf99d2d07e31c7e12c26321fa9 100644 (file)
@@ -270,8 +270,9 @@ static void ir_timer(unsigned long data)
 static void ir_work(struct work_struct *work)
 {
        struct IR_i2c *ir = container_of(work, struct IR_i2c, work);
+
        ir_key_poll(ir);
-       mod_timer(&ir->timer, jiffies+HZ/10);
+       mod_timer(&ir->timer, jiffies + msecs_to_jiffies(100));
 }
 
 /* ----------------------------------------------------------------------- */