diff options
-rw-r--r-- | drivers/media/IR/imon.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c index ca2b49084d72..5e2045670004 100644 --- a/drivers/media/IR/imon.c +++ b/drivers/media/IR/imon.c | |||
@@ -55,7 +55,6 @@ | |||
55 | #define BIT_DURATION 250 /* each bit received is 250us */ | 55 | #define BIT_DURATION 250 /* each bit received is 250us */ |
56 | 56 | ||
57 | #define IMON_CLOCK_ENABLE_PACKETS 2 | 57 | #define IMON_CLOCK_ENABLE_PACKETS 2 |
58 | #define IMON_KEY_RELEASE_OFFSET 1000 | ||
59 | 58 | ||
60 | /*** P R O T O T Y P E S ***/ | 59 | /*** P R O T O T Y P E S ***/ |
61 | 60 | ||
@@ -1199,13 +1198,14 @@ static u32 imon_panel_key_lookup(u64 hw_code) | |||
1199 | { | 1198 | { |
1200 | int i; | 1199 | int i; |
1201 | u64 code = be64_to_cpu(hw_code); | 1200 | u64 code = be64_to_cpu(hw_code); |
1202 | u32 keycode; | 1201 | u32 keycode = KEY_RESERVED; |
1203 | 1202 | ||
1204 | for (i = 0; i < ARRAY_SIZE(imon_panel_key_table); i++) | 1203 | for (i = 0; i < ARRAY_SIZE(imon_panel_key_table); i++) { |
1205 | if (imon_panel_key_table[i].hw_code == (code | 0xffee)) | 1204 | if (imon_panel_key_table[i].hw_code == (code | 0xffee)) { |
1205 | keycode = imon_panel_key_table[i].keycode; | ||
1206 | break; | 1206 | break; |
1207 | 1207 | } | |
1208 | keycode = imon_panel_key_table[i % IMON_KEY_RELEASE_OFFSET].keycode; | 1208 | } |
1209 | 1209 | ||
1210 | return keycode; | 1210 | return keycode; |
1211 | } | 1211 | } |