From: Dmitry Torokhov Date: Mon, 21 May 2007 14:51:11 +0000 (-0300) Subject: V4L/DVB (5684): V4L: ir-kbd-i2c - switch to using msecs_to_jiffies() X-Git-Tag: v2.6.23-rc1~493^2~95 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8083c5200e74a5db11c9671bfc1bcaefe8c48737;p=linux-2.6-omap-h63xx.git V4L/DVB (5684): V4L: ir-kbd-i2c - switch to using msecs_to_jiffies() Signed-off-by: Dmitry Torokhov Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index ed92b6f7187..cd84d060b8e 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c @@ -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)); } /* ----------------------------------------------------------------------- */