Skip to content

Commit

Permalink
V4L/DVB (5859): use msecs_to_jiffies on InfraRed RC5 timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 20, 2007
1 parent 09df5cb commit f7518bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/common/ir-functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ void ir_rc5_timer_end(unsigned long data)
}

/* Set/reset key-up timer */
timeout = current_jiffies + (500 + ir->rc5_key_timeout
* HZ) / 1000;
timeout = current_jiffies +
msecs_to_jiffies(ir->rc5_key_timeout);
mod_timer(&ir->timer_keyup, timeout);

/* Save code for repeat test */
Expand Down

0 comments on commit f7518bd

Please sign in to comment.