From patchwork Tue May 4 14:03:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarod Wilson X-Patchwork-Id: 96791 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o44E3nG5017219 for ; Tue, 4 May 2010 14:03:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932279Ab0EDODa (ORCPT ); Tue, 4 May 2010 10:03:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23888 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932254Ab0EDOD3 (ORCPT ); Tue, 4 May 2010 10:03:29 -0400 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 o44E3RcH018906 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 4 May 2010 10:03:27 -0400 Received: from xavier.bos.redhat.com (xavier.bos.redhat.com [10.16.16.50]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o44E3RoC022018; Tue, 4 May 2010 10:03:27 -0400 Received: by xavier.bos.redhat.com (Postfix, from userid 501) id 8A1B42D552; Tue, 4 May 2010 10:03:18 -0400 (EDT) Date: Tue, 4 May 2010 10:03:18 -0400 From: Jarod Wilson To: Dan Carpenter Cc: linux-media@vger.kernel.org Subject: [PATCH] IR/imon: remove dead IMON_KEY_RELEASE_OFFSET Message-ID: <20100504140318.GA10813@redhat.com> References: <20100504122030.GX29093@bicker> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100504122030.GX29093@bicker> User-Agent: Mutt/1.5.20 (2009-08-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 04 May 2010 14:03:50 +0000 (UTC) diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c index 27743eb..bce8ef8 100644 --- a/drivers/media/IR/imon.c +++ b/drivers/media/IR/imon.c @@ -55,7 +55,6 @@ #define BIT_DURATION 250 /* each bit received is 250us */ #define IMON_CLOCK_ENABLE_PACKETS 2 -#define IMON_KEY_RELEASE_OFFSET 1000 /*** P R O T O T Y P E S ***/ @@ -1205,7 +1204,7 @@ static u32 imon_panel_key_lookup(u64 hw_code) if (imon_panel_key_table[i].hw_code == (code | 0xffee)) break; - keycode = imon_panel_key_table[i % IMON_KEY_RELEASE_OFFSET].keycode; + keycode = imon_panel_key_table[i].keycode; return keycode; }