diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-21 11:41:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-21 11:41:02 -0300 |
commit | 40afb3b531b8e4eb61e48e01f536d02ec4182fa2 (patch) | |
tree | 5cb674df222c49b7ae4a3287bd3fd20a1d78de00 | |
parent | 13b4e9409467fe56d3ecaa6ea96c582dfc2e41d7 (diff) | |
download | mediapointer-dvb-s2-40afb3b531b8e4eb61e48e01f536d02ec4182fa2.tar.gz mediapointer-dvb-s2-40afb3b531b8e4eb61e48e01f536d02ec4182fa2.tar.bz2 |
XXX
From: Dmitry Torokhov <dtor@insightbb.com>
V4L: SAA7134 - switch to using msecs_to_jiffies()
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-input.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-input.c b/linux/drivers/media/video/saa7134/saa7134-input.c index 1b80a9c3a..c505076ae 100644 --- a/linux/drivers/media/video/saa7134/saa7134-input.c +++ b/linux/drivers/media/video/saa7134/saa7134-input.c @@ -154,21 +154,18 @@ void saa7134_input_irq(struct saa7134_dev *dev) static void saa7134_input_timer(unsigned long data) { - struct saa7134_dev *dev = (struct saa7134_dev*)data; + struct saa7134_dev *dev = (struct saa7134_dev *)data; struct card_ir *ir = dev->remote; - unsigned long timeout; build_key(dev); - timeout = jiffies + (ir->polling * HZ / 1000); - mod_timer(&ir->timer, timeout); + mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling)); } static void saa7134_ir_start(struct saa7134_dev *dev, struct card_ir *ir) { if (ir->polling) { - init_timer(&ir->timer); - ir->timer.function = saa7134_input_timer; - ir->timer.data = (unsigned long)dev; + setup_timer(&ir->timer, saa7134_input_timer, + (unsigned long)dev); ir->timer.expires = jiffies + HZ; add_timer(&ir->timer); } else if (ir->rc5_gpio) { |