diff options
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r-- | drivers/hid/hid-input-quirks.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c index 7018be3a5a4c..fbe8b6de1a63 100644 --- a/drivers/hid/hid-input-quirks.c +++ b/drivers/hid/hid-input-quirks.c | |||
@@ -349,9 +349,6 @@ int hidinput_mapping_quirks(struct hid_usage *usage, | |||
349 | return 0; | 349 | return 0; |
350 | } | 350 | } |
351 | 351 | ||
352 | #define IS_BTC8193(x) (x->vendor == 0x0518 && x->product == 0x0002) | ||
353 | #define IS_MS_KB(x) (x->vendor == 0x045e && (x->product == 0x00db || x->product == 0x00f9)) | ||
354 | |||
355 | void hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) | 352 | void hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) |
356 | { | 353 | { |
357 | struct input_dev *input; | 354 | struct input_dev *input; |
@@ -392,7 +389,8 @@ void hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, stru | |||
392 | return; | 389 | return; |
393 | 390 | ||
394 | /* Handling MS keyboards special buttons */ | 391 | /* Handling MS keyboards special buttons */ |
395 | if (IS_MS_KB(hid) && usage->hid == (HID_UP_MSVENDOR | 0xff05)) { | 392 | if (hid->quirks & HID_QUIRK_MICROSOFT_KEYS && |
393 | usage->hid == (HID_UP_MSVENDOR | 0xff05)) { | ||
396 | int key = 0; | 394 | int key = 0; |
397 | static int last_key = 0; | 395 | static int last_key = 0; |
398 | switch (value) { | 396 | switch (value) { |