aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/hid-input.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/input/hid-input.c')
-rw-r--r--drivers/usb/input/hid-input.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c
index 14acfc579f86..0b6452248a39 100644
--- a/drivers/usb/input/hid-input.c
+++ b/drivers/usb/input/hid-input.c
@@ -318,10 +318,18 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
318 break; 318 break;
319 319
320 case HID_UP_MSVENDOR: 320 case HID_UP_MSVENDOR:
321 case HID_UP_LOGIVENDOR:
322 goto ignore; 321 goto ignore;
323 322
324 case HID_UP_LOGIVENDOR2: /* Reported on Logitech Ultra X Media Remote */ 323 case HID_UP_CUSTOM: /* Reported on Logitech and Powerbook USB keyboards */
324
325 set_bit(EV_REP, input->evbit);
326 switch(usage->hid & HID_USAGE) {
327 case 0x003: map_key_clear(KEY_FN); break;
328 default: goto ignore;
329 }
330 break;
331
332 case HID_UP_LOGIVENDOR: /* Reported on Logitech Ultra X Media Remote */
325 333
326 set_bit(EV_REP, input->evbit); 334 set_bit(EV_REP, input->evbit);
327 switch(usage->hid & HID_USAGE) { 335 switch(usage->hid & HID_USAGE) {