aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-06-24 17:46:21 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:50:53 -0400
commit1e76253220dbe66e048e55680266dd1f4af0be85 (patch)
treee3b1a340de062603b0e5d1e65e5e37a58973f7c3 /drivers/hid/hid-input-quirks.c
parentb5635b129b3ca3a9c879a36f58f5b8c4903d267a (diff)
HID: move petalynx quirks
Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r--drivers/hid/hid-input-quirks.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
index d10f47765553..903162a63c4f 100644
--- a/drivers/hid/hid-input-quirks.c
+++ b/drivers/hid/hid-input-quirks.c
@@ -42,34 +42,6 @@ static int quirk_gyration_remote(struct hid_usage *usage,
42 return 1; 42 return 1;
43} 43}
44 44
45static int quirk_petalynx_remote(struct hid_usage *usage,
46 struct hid_input *hidinput, unsigned long **bit, int *max)
47{
48 if (((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) &&
49 ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER))
50 return 0;
51
52 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_LOGIVENDOR)
53 switch(usage->hid & HID_USAGE) {
54 case 0x05a: map_key_clear(KEY_TEXT); break;
55 case 0x05b: map_key_clear(KEY_RED); break;
56 case 0x05c: map_key_clear(KEY_GREEN); break;
57 case 0x05d: map_key_clear(KEY_YELLOW); break;
58 case 0x05e: map_key_clear(KEY_BLUE); break;
59 default:
60 return 0;
61 }
62
63 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_CONSUMER)
64 switch(usage->hid & HID_USAGE) {
65 case 0x0f6: map_key_clear(KEY_NEXT); break;
66 case 0x0fa: map_key_clear(KEY_BACK); break;
67 default:
68 return 0;
69 }
70 return 1;
71}
72
73static int quirk_cherry_genius_29e(struct hid_usage *usage, 45static int quirk_cherry_genius_29e(struct hid_usage *usage,
74 struct hid_input *hidinput, unsigned long **bit, int *max) 46 struct hid_input *hidinput, unsigned long **bit, int *max)
75{ 47{
@@ -94,9 +66,6 @@ static int quirk_cherry_genius_29e(struct hid_usage *usage,
94#define VENDOR_ID_MONTEREY 0x0566 66#define VENDOR_ID_MONTEREY 0x0566
95#define DEVICE_ID_GENIUS_KB29E 0x3004 67#define DEVICE_ID_GENIUS_KB29E 0x3004
96 68
97#define VENDOR_ID_PETALYNX 0x18b1
98#define DEVICE_ID_PETALYNX_MAXTER_REMOTE 0x0037
99
100static const struct hid_input_blacklist { 69static const struct hid_input_blacklist {
101 __u16 idVendor; 70 __u16 idVendor;
102 __u16 idProduct; 71 __u16 idProduct;
@@ -107,8 +76,6 @@ static const struct hid_input_blacklist {
107 76
108 { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e }, 77 { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e },
109 78
110 { VENDOR_ID_PETALYNX, DEVICE_ID_PETALYNX_MAXTER_REMOTE, quirk_petalynx_remote },
111
112 { 0, 0, NULL } 79 { 0, 0, NULL }
113}; 80};
114 81