Skip to content

Commit

Permalink
V4L/DVB (5684): V4L: ir-kbd-i2c - switch to using msecs_to_jiffies()
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Dmitry Torokhov authored and Mauro Carvalho Chehab committed Jul 18, 2007
1 parent 749823a commit 8083c52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/ir-kbd-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/* ----------------------------------------------------------------------- */
Expand Down

0 comments on commit 8083c52

Please sign in to comment.