diff options
-rw-r--r-- | drivers/hid/hid-input.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index ecb1b6f26853..da76358cde06 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -677,6 +677,14 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |||
677 | break; | 677 | break; |
678 | } | 678 | } |
679 | 679 | ||
680 | if ((usage->hid & 0xf0) == 0xb0) { /* SC - Display */ | ||
681 | switch (usage->hid & 0xf) { | ||
682 | case 0x05: map_key_clear(KEY_SWITCHVIDEOMODE); break; | ||
683 | default: goto ignore; | ||
684 | } | ||
685 | break; | ||
686 | } | ||
687 | |||
680 | /* | 688 | /* |
681 | * Some lazy vendors declare 255 usages for System Control, | 689 | * Some lazy vendors declare 255 usages for System Control, |
682 | * leading to the creation of ABS_X|Y axis and too many others. | 690 | * leading to the creation of ABS_X|Y axis and too many others. |