Skip to contentSkip to conversation

saa7134: fix raw IR timeout value

PATCH New Jarod Wilson 1 participant 1 message Jun 16, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 saa7134: fix raw IR timeout value

The comment says "wait 15ms", but the code says jiffies_to_msecs(15) instead of msecs_to_jiffies(15). Fix that. Tested, works fine with both rc5 and rc6 decode, in-kernel and via lirc userspace, with an HVR-1150.

---
 drivers/media/video/saa7134/saa7134-input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/video/saa7134/saa7134-input.c +1 -1
index ff6c0e9..d4ee24b 100644
@@ -963,7 +963,7 @@ static int saa7134_raw_decode_irq(struct saa7134_dev *dev)
 	 * to work with other protocols.
 	 */
 	if (!ir->active) {
-		timeout = jiffies + jiffies_to_msecs(15);
+		timeout = jiffies + msecs_to_jiffies(15);
 		mod_timer(&ir->timer, timeout);
 		ir->active = true;
 	}
Signature · 1 line
1.7.1