diff options
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r-- | drivers/hid/hid-input-quirks.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c index 97ee75064a0e..4cd585b64ae0 100644 --- a/drivers/hid/hid-input-quirks.c +++ b/drivers/hid/hid-input-quirks.c | |||
@@ -16,9 +16,6 @@ | |||
16 | #include <linux/input.h> | 16 | #include <linux/input.h> |
17 | #include <linux/hid.h> | 17 | #include <linux/hid.h> |
18 | 18 | ||
19 | #define map_rel(c) hid_map_usage(hidinput, usage, bit, max, EV_REL, (c)) | ||
20 | #define map_key(c) hid_map_usage(hidinput, usage, bit, max, EV_KEY, (c)) | ||
21 | |||
22 | #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, \ |
23 | max, EV_KEY, (c)) | 20 | max, EV_KEY, (c)) |
24 | 21 | ||
@@ -132,37 +129,12 @@ static int quirk_cherry_genius_29e(struct hid_usage *usage, | |||
132 | return 1; | 129 | return 1; |
133 | } | 130 | } |
134 | 131 | ||
135 | static int quirk_btc_8193(struct hid_usage *usage, struct hid_input *hidinput, | ||
136 | unsigned long **bit, int *max) | ||
137 | { | ||
138 | if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) | ||
139 | return 0; | ||
140 | |||
141 | switch (usage->hid & HID_USAGE) { | ||
142 | case 0x230: map_key(BTN_MOUSE); break; | ||
143 | case 0x231: map_rel(REL_WHEEL); break; | ||
144 | /* | ||
145 | * this keyboard has a scrollwheel implemented in | ||
146 | * totally broken way. We map this usage temporarily | ||
147 | * to HWHEEL and handle it in the event quirk handler | ||
148 | */ | ||
149 | case 0x232: map_rel(REL_HWHEEL); break; | ||
150 | |||
151 | default: | ||
152 | return 0; | ||
153 | } | ||
154 | return 1; | ||
155 | } | ||
156 | |||
157 | #define VENDOR_ID_BELKIN 0x1020 | 132 | #define VENDOR_ID_BELKIN 0x1020 |
158 | #define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006 | 133 | #define DEVICE_ID_BELKIN_WIRELESS_KEYBOARD 0x0006 |
159 | 134 | ||
160 | #define VENDOR_ID_CHICONY 0x04f2 | 135 | #define VENDOR_ID_CHICONY 0x04f2 |
161 | #define DEVICE_ID_CHICONY_TACTICAL_PAD 0x0418 | 136 | #define DEVICE_ID_CHICONY_TACTICAL_PAD 0x0418 |
162 | 137 | ||
163 | #define VENDOR_ID_EZKEY 0x0518 | ||
164 | #define DEVICE_ID_BTC_8193 0x0002 | ||
165 | |||
166 | #define VENDOR_ID_GYRATION 0x0c16 | 138 | #define VENDOR_ID_GYRATION 0x0c16 |
167 | #define DEVICE_ID_GYRATION_REMOTE 0x0002 | 139 | #define DEVICE_ID_GYRATION_REMOTE 0x0002 |
168 | 140 | ||
@@ -182,8 +154,6 @@ static const struct hid_input_blacklist { | |||
182 | 154 | ||
183 | { VENDOR_ID_CHICONY, DEVICE_ID_CHICONY_TACTICAL_PAD, quirk_chicony_tactical_pad }, | 155 | { VENDOR_ID_CHICONY, DEVICE_ID_CHICONY_TACTICAL_PAD, quirk_chicony_tactical_pad }, |
184 | 156 | ||
185 | { VENDOR_ID_EZKEY, DEVICE_ID_BTC_8193, quirk_btc_8193 }, | ||
186 | |||
187 | { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, | 157 | { VENDOR_ID_GYRATION, DEVICE_ID_GYRATION_REMOTE, quirk_gyration_remote }, |
188 | 158 | ||
189 | { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e }, | 159 | { VENDOR_ID_MONTEREY, DEVICE_ID_GENIUS_KB29E, quirk_cherry_genius_29e }, |
@@ -215,13 +185,6 @@ int hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struc | |||
215 | 185 | ||
216 | input = field->hidinput->input; | 186 | input = field->hidinput->input; |
217 | 187 | ||
218 | /* handle the temporary quirky mapping to HWHEEL */ | ||
219 | if (hid->quirks & HID_QUIRK_HWHEEL_WHEEL_INVERT && | ||
220 | usage->type == EV_REL && usage->code == REL_HWHEEL) { | ||
221 | input_event(input, usage->type, REL_WHEEL, -value); | ||
222 | return 1; | ||
223 | } | ||
224 | |||
225 | /* Gyration MCE remote "Sleep" key */ | 188 | /* Gyration MCE remote "Sleep" key */ |
226 | if (hid->vendor == VENDOR_ID_GYRATION && | 189 | if (hid->vendor == VENDOR_ID_GYRATION && |
227 | hid->product == DEVICE_ID_GYRATION_REMOTE && | 190 | hid->product == DEVICE_ID_GYRATION_REMOTE && |