Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193162
b: refs/heads/master
c: 083e472
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 04a683c commit 4618b10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9986da291b533d4bda03f812ca01353852564900
refs/heads/master: 083e472176999de97848e5659cc958516ef81ecb
12 changes: 6 additions & 6 deletions trunk/drivers/media/IR/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ***/

Expand Down Expand Up @@ -1199,13 +1198,14 @@ static u32 imon_panel_key_lookup(u64 hw_code)
{
int i;
u64 code = be64_to_cpu(hw_code);
u32 keycode;
u32 keycode = KEY_RESERVED;

for (i = 0; i < ARRAY_SIZE(imon_panel_key_table); i++)
if (imon_panel_key_table[i].hw_code == (code | 0xffee))
for (i = 0; i < ARRAY_SIZE(imon_panel_key_table); i++) {
if (imon_panel_key_table[i].hw_code == (code | 0xffee)) {
keycode = imon_panel_key_table[i].keycode;
break;

keycode = imon_panel_key_table[i % IMON_KEY_RELEASE_OFFSET].keycode;
}
}

return keycode;
}
Expand Down

0 comments on commit 4618b10

Please sign in to comment.