diff options
author | Ping Cheng <pinglinux@gmail.com> | 2019-06-24 01:52:43 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2019-06-26 14:00:32 +0200 |
commit | 384225c2a7243d073495aa3a6ec07ad25d01bbfe (patch) | |
tree | fa9d926833b48a92919a0bae3acc888812b493c1 /drivers/hid | |
parent | HID: wacom: generic: read the number of expected touches on a per collection ... (diff) | |
download | linux-384225c2a7243d073495aa3a6ec07ad25d01bbfe.tar.xz linux-384225c2a7243d073495aa3a6ec07ad25d01bbfe.zip |
HID: wacom: add new MobileStudio Pro support
Add product ID for new MobileStudio Pro.
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/wacom_wac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 104e6d1f4c80..e35d04451595 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -2028,12 +2028,14 @@ 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 == 0x357 || hdev->product == 0x358 || /* Intuos Pro 2 */ + hdev->product == 0x399)) { /* MobileStudio Pro */ value = (field->logical_maximum - value); if (hdev->product == 0x357 || hdev->product == 0x358) value = wacom_offset_rotation(input, usage, value, 3, 16); - else if (hdev->product == 0x34d || hdev->product == 0x34e) + else if (hdev->product == 0x34d || hdev->product == 0x34e || + hdev->product == 0x399) value = wacom_offset_rotation(input, usage, value, 1, 2); } else { |