This hack was used when the imon driver was using internal key lookup
routines, but became dead weight when the driver was converted to use
ir-core's key lookup routines. These bits simply didn't get removed,
drop 'em now.

Pointed out by Dan Carpenter.

Signed-off-by: Jarod Wilson <ja...@redhat.com>
---
 drivers/media/IR/imon.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

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;
 }

-- 
Jarod Wilson
ja...@redhat.com

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to