From patchwork Fri Jan 21 04:28:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarod Wilson X-Patchwork-Id: 5644 Return-path: Envelope-to: mchehab@pedra Delivery-date: Fri, 21 Jan 2011 08:03:15 -0200 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1PgDpr-0000gf-1n for mchehab@pedra; Fri, 21 Jan 2011 08:03:15 -0200 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Fri, 21 Jan 2011 08:03:15 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Pg8cD-000839-Hp; Fri, 21 Jan 2011 04:28:49 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379Ab1AUE2s (ORCPT + 1 other); Thu, 20 Jan 2011 23:28:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13645 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827Ab1AUE2r (ORCPT ); Thu, 20 Jan 2011 23:28:47 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0L4Slqc027763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 20 Jan 2011 23:28:47 -0500 Received: from hades.wilsonet.com.com (vpn-236-56.phx2.redhat.com [10.3.236.56]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p0L4SkXX030739; Thu, 20 Jan 2011 23:28:46 -0500 From: Jarod Wilson To: linux-media@vger.kernel.org Cc: Jarod Wilson Subject: [PATCH] rc/streamzap: timeout needs to be in NS Date: Thu, 20 Jan 2011 23:28:37 -0500 Message-Id: <1295584117-21050-1-git-send-email-jarod@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Signed-off-by: Jarod Wilson --- drivers/media/rc/streamzap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/rc/streamzap.c b/drivers/media/rc/streamzap.c index 6e2911c..1b013d4 100644 --- a/drivers/media/rc/streamzap.c +++ b/drivers/media/rc/streamzap.c @@ -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 */