diff options
author | Przemo Firszt <przemo@firszt.eu> | 2012-05-15 14:32:25 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-05-16 15:42:15 -0400 |
commit | 163a6ae19b8f6afc4ac4f60711b998a3c150b858 (patch) | |
tree | a01e3764165e2804e6d87bc4daf818f0dba8680e /drivers/hid | |
parent | d13f5454e4acbbe2a470cc6743c2998cfcd607a8 (diff) |
HID: wacom: Move Graphire raport header check.
That check is valid only for Wacom Graphire, as the device raports always
start with 0x03. Intuos4 WL high-speed raports begin with 0x04, so
the check would be filtering out valid reports.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-wacom.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/hid/hid-wacom.c b/drivers/hid/hid-wacom.c index 29372edc31c0..4fc4eebe9784 100644 --- a/drivers/hid/hid-wacom.c +++ b/drivers/hid/hid-wacom.c | |||
@@ -578,13 +578,15 @@ static int wacom_raw_event(struct hid_device *hdev, struct hid_report *report, | |||
578 | hidinput = list_entry(hdev->inputs.next, struct hid_input, list); | 578 | hidinput = list_entry(hdev->inputs.next, struct hid_input, list); |
579 | input = hidinput->input; | 579 | input = hidinput->input; |
580 | 580 | ||
581 | /* Check if this is a tablet report */ | ||
582 | if (data[0] != 0x03) | ||
583 | return 0; | ||
584 | |||
585 | switch (hdev->product) { | 581 | switch (hdev->product) { |
586 | case USB_DEVICE_ID_WACOM_GRAPHIRE_BLUETOOTH: | 582 | case USB_DEVICE_ID_WACOM_GRAPHIRE_BLUETOOTH: |
587 | return wacom_gr_parse_report(hdev, wdata, input, data); | 583 | if (data[0] == 0x03) { |
584 | return wacom_gr_parse_report(hdev, wdata, input, data); | ||
585 | } else { | ||
586 | hid_err(hdev, "Unknown report: %d,%d size:%d\n", | ||
587 | data[0], data[1], size); | ||
588 | return 0; | ||
589 | } | ||
588 | break; | 590 | break; |
589 | case USB_DEVICE_ID_WACOM_INTUOS4_BLUETOOTH: | 591 | case USB_DEVICE_ID_WACOM_INTUOS4_BLUETOOTH: |
590 | i = 1; | 592 | i = 1; |