aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r--drivers/hid/hid-input-quirks.c96
1 files changed, 0 insertions, 96 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
index 8ec64b74d38d..10451ca3a786 100644
--- a/drivers/hid/hid-input-quirks.c
+++ b/drivers/hid/hid-input-quirks.c
@@ -54,39 +54,6 @@ static int quirk_cherry_cymotion(struct hid_usage *usage,
54 return 1; 54 return 1;
55} 55}
56 56
57static int quirk_logitech_ultrax_remote(struct hid_usage *usage,
58 struct hid_input *hidinput, unsigned long **bit, int *max)
59{
60 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR)
61 return 0;
62
63 set_bit(EV_REP, hidinput->input->evbit);
64 switch(usage->hid & HID_USAGE) {
65 /* Reported on Logitech Ultra X Media Remote */
66 case 0x004: map_key_clear(KEY_AGAIN); break;
67 case 0x00d: map_key_clear(KEY_HOME); break;
68 case 0x024: map_key_clear(KEY_SHUFFLE); break;
69 case 0x025: map_key_clear(KEY_TV); break;
70 case 0x026: map_key_clear(KEY_MENU); break;
71 case 0x031: map_key_clear(KEY_AUDIO); break;
72 case 0x032: map_key_clear(KEY_TEXT); break;
73 case 0x033: map_key_clear(KEY_LAST); break;
74 case 0x047: map_key_clear(KEY_MP3); break;
75 case 0x048: map_key_clear(KEY_DVD); break;
76 case 0x049: map_key_clear(KEY_MEDIA); break;
77 case 0x04a: map_key_clear(KEY_VIDEO); break;
78 case 0x04b: map_key_clear(KEY_ANGLE); break;
79 case 0x04c: map_key_clear(KEY_LANGUAGE); break;
80 case 0x04d: map_key_clear(KEY_SUBTITLE); break;
81 case 0x051: map_key_clear(KEY_RED); break;
82 case 0x052: map_key_clear(KEY_CLOSE); break;
83
84 default:
85 return 0;
86 }
87 return 1;
88}
89
90static int quirk_gyration_remote(struct hid_usage *usage, 57static int quirk_gyration_remote(struct hid_usage *usage,
91 struct hid_input *hidinput, unsigned long **bit, int *max) 58 struct hid_input *hidinput, unsigned long **bit, int *max)
92{ 59{
@@ -207,58 +174,6 @@ static int quirk_petalynx_remote(struct hid_usage *usage,
207 return 1; 174 return 1;
208} 175}
209 176
210static int quirk_logitech_wireless(struct hid_usage *usage,
211 struct hid_input *hidinput, unsigned long **bit, int *max)
212{
213 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER)
214 return 0;
215
216 switch (usage->hid & HID_USAGE) {
217 case 0x1001: map_key_clear(KEY_MESSENGER); break;
218 case 0x1003: map_key_clear(KEY_SOUND); break;
219 case 0x1004: map_key_clear(KEY_VIDEO); break;
220 case 0x1005: map_key_clear(KEY_AUDIO); break;
221 case 0x100a: map_key_clear(KEY_DOCUMENTS); break;
222 case 0x1011: map_key_clear(KEY_PREVIOUSSONG); break;
223 case 0x1012: map_key_clear(KEY_NEXTSONG); break;
224 case 0x1013: map_key_clear(KEY_CAMERA); break;
225 case 0x1014: map_key_clear(KEY_MESSENGER); break;
226 case 0x1015: map_key_clear(KEY_RECORD); break;
227 case 0x1016: map_key_clear(KEY_PLAYER); break;
228 case 0x1017: map_key_clear(KEY_EJECTCD); break;
229 case 0x1018: map_key_clear(KEY_MEDIA); break;
230 case 0x1019: map_key_clear(KEY_PROG1); break;
231 case 0x101a: map_key_clear(KEY_PROG2); break;
232 case 0x101b: map_key_clear(KEY_PROG3); break;
233 case 0x101f: map_key_clear(KEY_ZOOMIN); break;
234 case 0x1020: map_key_clear(KEY_ZOOMOUT); break;
235 case 0x1021: map_key_clear(KEY_ZOOMRESET); break;
236 case 0x1023: map_key_clear(KEY_CLOSE); break;
237 case 0x1027: map_key_clear(KEY_MENU); break;
238 /* this one is marked as 'Rotate' */
239 case 0x1028: map_key_clear(KEY_ANGLE); break;
240 case 0x1029: map_key_clear(KEY_SHUFFLE); break;
241 case 0x102a: map_key_clear(KEY_BACK); break;
242 case 0x102b: map_key_clear(KEY_CYCLEWINDOWS); break;
243 case 0x1041: map_key_clear(KEY_BATTERY); break;
244 case 0x1042: map_key_clear(KEY_WORDPROCESSOR); break;
245 case 0x1043: map_key_clear(KEY_SPREADSHEET); break;
246 case 0x1044: map_key_clear(KEY_PRESENTATION); break;
247 case 0x1045: map_key_clear(KEY_UNDO); break;
248 case 0x1046: map_key_clear(KEY_REDO); break;
249 case 0x1047: map_key_clear(KEY_PRINT); break;
250 case 0x1048: map_key_clear(KEY_SAVE); break;
251 case 0x1049: map_key_clear(KEY_PROG1); break;
252 case 0x104a: map_key_clear(KEY_PROG2); break;
253 case 0x104b: map_key_clear(KEY_PROG3); break;
254 case 0x104c: map_key_clear(KEY_PROG4); break;
255
256 default:
257 return 0;
258 }
259 return 1;
260}
261
262static int quirk_cherry_genius_29e(struct hid_usage *usage, 177static int quirk_cherry_genius_29e(struct hid_usage *usage,
263 struct hid_input *hidinput, unsigned long **bit, int *max) 178 struct hid_input *hidinput, unsigned long **bit, int *max)
264{ 179{
@@ -329,12 +244,6 @@ static int quirk_sunplus_wdesktop(struct hid_usage *usage,
329#define VENDOR_ID_GYRATION 0x0c16 244#define VENDOR_ID_GYRATION 0x0c16
330#define DEVICE_ID_GYRATION_REMOTE 0x0002 245#define DEVICE_ID_GYRATION_REMOTE 0x0002
331 246
332#define VENDOR_ID_LOGITECH 0x046d
333#define DEVICE_ID_LOGITECH_RECEIVER 0xc101
334#define DEVICE_ID_S510_RECEIVER 0xc50c
335#define DEVICE_ID_S510_RECEIVER_2 0xc517
336#define DEVICE_ID_MX3000_RECEIVER 0xc513
337
338#define VENDOR_ID_MICROSOFT 0x045e 247#define VENDOR_ID_MICROSOFT 0x045e
339#define DEVICE_ID_MS4K 0x00db 248#define DEVICE_ID_MS4K 0x00db
340#define DEVICE_ID_MS6K 0x00f9 249#define DEVICE_ID_MS6K 0x00f9
@@ -366,11 +275,6 @@ static const struct hid_input_blacklist {
366 275
367 { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, 276 { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote },
368 277
369 { VENDOR_ID_LOGITECH, DEVICE_ID_LOGITECH_RECEIVER, quirk_logitech_ultrax_remote },
370 { VENDOR_ID_LOGITECH, DEVICE_ID_S510_RECEIVER, quirk_logitech_wireless },
371 { VENDOR_ID_LOGITECH, DEVICE_ID_S510_RECEIVER_2, quirk_logitech_wireless },
372 { VENDOR_ID_LOGITECH, DEVICE_ID_MX3000_RECEIVER, quirk_logitech_wireless },
373
374 { VENDOR_ID_MICROSOFT, DEVICE_ID_MS4K, quirk_microsoft_ergonomy_kb }, 278 { VENDOR_ID_MICROSOFT, DEVICE_ID_MS4K, quirk_microsoft_ergonomy_kb },
375 { VENDOR_ID_MICROSOFT, DEVICE_ID_MS6K, quirk_microsoft_ergonomy_kb }, 279 { VENDOR_ID_MICROSOFT, DEVICE_ID_MS6K, quirk_microsoft_ergonomy_kb },
376 { VENDOR_ID_MICROSOFT, DEVICE_IS_MS_PRESENTER_8K_BT, quirk_microsoft_presenter_8k }, 280 { VENDOR_ID_MICROSOFT, DEVICE_IS_MS_PRESENTER_8K_BT, quirk_microsoft_presenter_8k },