aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-06-24 14:42:25 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:50:52 -0400
commit3b239cd739a9499da08326356add3d9d992c7911 (patch)
tree859cbb6d09d381edcc8e0e9f12437e66bf00c7c5 /drivers/hid/hid-input-quirks.c
parent14a21cd459f97e3b3cc4fcde48fc5bcdb81d097e (diff)
HID: move cherry 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.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
index 5bacf181a8ca..97ee75064a0e 100644
--- a/drivers/hid/hid-input-quirks.c
+++ b/drivers/hid/hid-input-quirks.c
@@ -38,22 +38,6 @@ static int quirk_belkin_wkbd(struct hid_usage *usage,
38 return 1; 38 return 1;
39} 39}
40 40
41static int quirk_cherry_cymotion(struct hid_usage *usage,
42 struct hid_input *hidinput, unsigned long **bit, int *max)
43{
44 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER)
45 return 0;
46
47 switch (usage->hid & HID_USAGE) {
48 case 0x301: map_key_clear(KEY_PROG1); break;
49 case 0x302: map_key_clear(KEY_PROG2); break;
50 case 0x303: map_key_clear(KEY_PROG3); break;
51 default:
52 return 0;
53 }
54 return 1;
55}
56
57static int quirk_gyration_remote(struct hid_usage *usage, 41static int quirk_gyration_remote(struct hid_usage *usage,
58 struct hid_input *hidinput, unsigned long **bit, int *max) 42 struct hid_input *hidinput, unsigned long **bit, int *max)
59{ 43{
@@ -173,9 +157,6 @@ static int quirk_btc_8193(struct hid_usage *usage, struct hid_input *hidinput,
173#define VENDOR_ID_BELKIN 0x1020 157#define VENDOR_ID_BELKIN 0x1020
174#define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006 158#define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006
175 159
176#define VENDOR_ID_CHERRY 0x046a
177#define DEVICE_ID_CHERRY_CYMOTION 0x0023
178
179#define VENDOR_ID_CHICONY 0x04f2 160#define VENDOR_ID_CHICONY 0x04f2
180#define DEVICE_ID_CHICONY_TACTICAL_PAD 0x0418 161#define DEVICE_ID_CHICONY_TACTICAL_PAD 0x0418
181 162
@@ -199,8 +180,6 @@ static const struct hid_input_blacklist {
199} hid_input_blacklist[] = { 180} hid_input_blacklist[] = {
200 { VENDOR_ID_BELKIN, DEVICE_ID_BELKIN_WIRELESS_KEYBOARD, quirk_belkin_wkbd }, 181 { VENDOR_ID_BELKIN, DEVICE_ID_BELKIN_WIRELESS_KEYBOARD, quirk_belkin_wkbd },
201 182
202 { VENDOR_ID_CHERRY, DEVICE_ID_CHERRY_CYMOTION, quirk_cherry_cymotion },
203
204 { VENDOR_ID_CHICONY, DEVICE_ID_CHICONY_TACTICAL_PAD, quirk_chicony_tactical_pad }, 183 { VENDOR_ID_CHICONY, DEVICE_ID_CHICONY_TACTICAL_PAD, quirk_chicony_tactical_pad },
205 184
206 { VENDOR_ID_EZKEY, DEVICE_ID_BTC_8193, quirk_btc_8193 }, 185 { VENDOR_ID_EZKEY, DEVICE_ID_BTC_8193, quirk_btc_8193 },