Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8473
b: refs/heads/master
c: e875ce3
h: refs/heads/master
i:
  8471: abafc61
v: v3
  • Loading branch information
Stelian Pop authored and Dmitry Torokhov committed Sep 5, 2005
1 parent add4e3f commit 25bb072
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 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: 61cdecd9f5f602775af1e89c200179d093a94ae2
refs/heads/master: e875ce374759087771313c9e76b672b86ac20950
12 changes: 10 additions & 2 deletions trunk/drivers/usb/input/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,18 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
break;

case HID_UP_MSVENDOR:
case HID_UP_LOGIVENDOR:
goto ignore;

case HID_UP_LOGIVENDOR2: /* Reported on Logitech Ultra X Media Remote */
case HID_UP_CUSTOM: /* Reported on Logitech and Powerbook USB keyboards */

set_bit(EV_REP, input->evbit);
switch(usage->hid & HID_USAGE) {
case 0x003: map_key_clear(KEY_FN); break;
default: goto ignore;
}
break;

case HID_UP_LOGIVENDOR: /* Reported on Logitech Ultra X Media Remote */

set_bit(EV_REP, input->evbit);
switch(usage->hid & HID_USAGE) {
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/input/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ struct hid_item {
#define HID_UP_PID 0x000f0000
#define HID_UP_HPVENDOR 0xff7f0000
#define HID_UP_MSVENDOR 0xff000000
#define HID_UP_LOGIVENDOR 0x00ff0000
#define HID_UP_LOGIVENDOR2 0xffbc0000
#define HID_UP_CUSTOM 0x00ff0000
#define HID_UP_LOGIVENDOR 0xffbc0000

#define HID_USAGE 0x0000ffff

Expand Down

0 comments on commit 25bb072

Please sign in to comment.