diff options
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r-- | drivers/hid/hid-input-quirks.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c index 903162a63c4f..1a4ba0313030 100644 --- a/drivers/hid/hid-input-quirks.c +++ b/drivers/hid/hid-input-quirks.c | |||
@@ -42,30 +42,9 @@ static int quirk_gyration_remote(struct hid_usage *usage, | |||
42 | return 1; | 42 | return 1; |
43 | } | 43 | } |
44 | 44 | ||
45 | static int quirk_cherry_genius_29e(struct hid_usage *usage, | ||
46 | struct hid_input *hidinput, unsigned long **bit, int *max) | ||
47 | { | ||
48 | if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) | ||
49 | return 0; | ||
50 | |||
51 | switch (usage->hid & HID_USAGE) { | ||
52 | case 0x156: map_key_clear(KEY_WORDPROCESSOR); break; | ||
53 | case 0x157: map_key_clear(KEY_SPREADSHEET); break; | ||
54 | case 0x158: map_key_clear(KEY_PRESENTATION); break; | ||
55 | case 0x15c: map_key_clear(KEY_STOP); break; | ||
56 | |||
57 | default: | ||
58 | return 0; | ||
59 | } | ||
60 | return 1; | ||
61 | } | ||
62 | |||
63 | #define VENDOR_ID_GYRATION 0x0c16 | 45 | #define VENDOR_ID_GYRATION 0x0c16 |
64 | #define DEVICE_ID_GYRATION_REMOTE 0x0002 | 46 | #define DEVICE_ID_GYRATION_REMOTE 0x0002 |
65 | 47 | ||
66 | #define VENDOR_ID_MONTEREY 0x0566 | ||
67 | #define DEVICE_ID_GENIUS_KB29E 0x3004 | ||
68 | |||
69 | static const struct hid_input_blacklist { | 48 | static const struct hid_input_blacklist { |
70 | __u16 idVendor; | 49 | __u16 idVendor; |
71 | __u16 idProduct; | 50 | __u16 idProduct; |
@@ -74,8 +53,6 @@ static const struct hid_input_blacklist { | |||
74 | } hid_input_blacklist[] = { | 53 | } hid_input_blacklist[] = { |
75 | { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, | 54 | { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, |
76 | 55 | ||
77 | { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e }, | ||
78 | |||
79 | { 0, 0, NULL } | 56 | { 0, 0, NULL } |
80 | }; | 57 | }; |
81 | 58 | ||