diff options
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r-- | drivers/hid/hid-input-quirks.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c index 5f84568b9bd..d10f4776555 100644 --- a/drivers/hid/hid-input-quirks.c +++ b/drivers/hid/hid-input-quirks.c | |||
@@ -19,22 +19,6 @@ | |||
19 | #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, bit, \ | 19 | #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, bit, \ |
20 | max, EV_KEY, (c)) | 20 | max, EV_KEY, (c)) |
21 | 21 | ||
22 | static int quirk_belkin_wkbd(struct hid_usage *usage, | ||
23 | struct hid_input *hidinput, unsigned long **bit, int *max) | ||
24 | { | ||
25 | if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) | ||
26 | return 0; | ||
27 | |||
28 | switch (usage->hid & HID_USAGE) { | ||
29 | case 0x03a: map_key_clear(KEY_SOUND); break; | ||
30 | case 0x03b: map_key_clear(KEY_CAMERA); break; | ||
31 | case 0x03c: map_key_clear(KEY_DOCUMENTS); break; | ||
32 | default: | ||
33 | return 0; | ||
34 | } | ||
35 | return 1; | ||
36 | } | ||
37 | |||
38 | static int quirk_gyration_remote(struct hid_usage *usage, | 22 | static int quirk_gyration_remote(struct hid_usage *usage, |
39 | struct hid_input *hidinput, unsigned long **bit, int *max) | 23 | struct hid_input *hidinput, unsigned long **bit, int *max) |
40 | { | 24 | { |
@@ -104,9 +88,6 @@ static int quirk_cherry_genius_29e(struct hid_usage *usage, | |||
104 | return 1; | 88 | return 1; |
105 | } | 89 | } |
106 | 90 | ||
107 | #define VENDOR_ID_BELKIN 0x1020 | ||
108 | #define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006 | ||
109 | |||
110 | #define VENDOR_ID_GYRATION 0x0c16 | 91 | #define VENDOR_ID_GYRATION 0x0c16 |
111 | #define DEVICE_ID_GYRATION_REMOTE 0x0002 | 92 | #define DEVICE_ID_GYRATION_REMOTE 0x0002 |
112 | 93 | ||
@@ -122,8 +103,6 @@ static const struct hid_input_blacklist { | |||
122 | int (*quirk)(struct hid_usage *, struct hid_input *, unsigned long **, | 103 | int (*quirk)(struct hid_usage *, struct hid_input *, unsigned long **, |
123 | int *); | 104 | int *); |
124 | } hid_input_blacklist[] = { | 105 | } hid_input_blacklist[] = { |
125 | { VENDOR_ID_BELKIN, DEVICE_ID_BELKIN_WIRELESS_KEYBOARD, quirk_belkin_wkbd }, | ||
126 | |||
127 | { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, | 106 | { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, |
128 | 107 | ||
129 | { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e }, | 108 | { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e }, |