| From 74a330ceb8d300a5d0ffb70a1c7d892bff67d2cd Mon Sep 17 00:00:00 2001 |
| From: Aaron Armstrong Skomra <skomra@gmail.com> |
| Date: Wed, 26 Jun 2019 15:48:48 -0700 |
| Subject: [PATCH] HID: wacom: generic: add touchring adjustment for 2nd Gen Pro |
| Small |
| |
| commit 6e2abc68585b0942257f6198944b8a0e24c67d8f upstream. |
| |
| Add the product ID for the 2nd Generation Intuos Pro |
| Small to the touchring coordinate adjustment block. |
| |
| Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com> |
| Reviewed-by: Ping Cheng <ping.cheng@wacom.com> |
| Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c |
| index 59ade243312b..9162b9682d9c 100644 |
| --- a/drivers/hid/wacom_wac.c |
| +++ b/drivers/hid/wacom_wac.c |
| @@ -2044,10 +2044,12 @@ static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *field |
| if (hdev->vendor == 0x56a && |
| (hdev->product == 0x34d || hdev->product == 0x34e || /* MobileStudio Pro */ |
| hdev->product == 0x357 || hdev->product == 0x358 || /* Intuos Pro 2 */ |
| + hdev->product == 0x392 || /* Intuos Pro 2 */ |
| hdev->product == 0x399)) { /* MobileStudio Pro */ |
| value = (field->logical_maximum - value); |
| |
| - if (hdev->product == 0x357 || hdev->product == 0x358) |
| + if (hdev->product == 0x357 || hdev->product == 0x358 || |
| + hdev->product == 0x392) |
| value = wacom_offset_rotation(input, usage, value, 3, 16); |
| else if (hdev->product == 0x34d || hdev->product == 0x34e || |
| hdev->product == 0x399) |
| -- |
| 2.7.4 |
| |