Skip to contentSkip to conversation

rc/streamzap: timeout needs to be in NS

PATCH New Jarod Wilson 1 participant 1 message Jan 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rc/streamzap: timeout needs to be in NS

---
 drivers/media/rc/streamzap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/rc/streamzap.c +1 -1
index 6e2911c..1b013d4 100644
@@ -430,7 +430,7 @@ static int __devinit streamzap_probe(struct usb_interface *intf,
 	sz->decoder_state = PulseSpace;
 	/* FIXME: don't yet have a way to set this */
 	sz->timeout_enabled = true;
-	sz->rdev->timeout = (((SZ_TIMEOUT * SZ_RESOLUTION * 1000) &
+	sz->rdev->timeout = ((MS_TO_NS(SZ_TIMEOUT * SZ_RESOLUTION) &
 				IR_MAX_DURATION) | 0x03000000);
 	#if 0
 	/* not yet supported, depends on patches from maxim */
Signature · 1 line
1.7.3.4