Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161587
b: refs/heads/master
c: a4c1cbc
h: refs/heads/master
i:
  161585: bd6e506
  161583: 0da3937
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Sep 12, 2009
1 parent f1f4829 commit 813a56a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b77f0a76304dae754003b0a84fb4f66bf9934c97
refs/heads/master: a4c1cbc7819e890d4c2bc2b79b6cbf0fd9cad699
13 changes: 13 additions & 0 deletions trunk/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ static int dvb_usb_getkeycode(struct input_dev *dev,
*keycode = keymap[i].event;
return 0;
}

/*
* If is there extra space, returns KEY_RESERVED,
* otherwise, input core won't let dvb_usb_setkeycode
* to work
*/
for (i = 0; i < d->props.rc_key_map_size; i++)
if (keymap[i].event == KEY_RESERVED ||
keymap[i].event == KEY_UNKNOWN) {
*keycode = KEY_RESERVED;
return 0;
}

return -EINVAL;
}

Expand Down

0 comments on commit 813a56a

Please sign in to comment.