Commit bbbe3ac8 authored by Ping Cheng's avatar Ping Cheng Committed by Jiri Kosina

HID: wacom: add new MobileStudio Pro 13 support

wacom_wac_pad_event is the only routine we need to update.
Signed-off-by: default avatarPing Cheng <ping.cheng@wacom.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 362c571b
...@@ -2093,14 +2093,14 @@ static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *field ...@@ -2093,14 +2093,14 @@ static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *field
(hdev->product == 0x34d || hdev->product == 0x34e || /* MobileStudio Pro */ (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 == 0x392 || /* Intuos Pro 2 */ hdev->product == 0x392 || /* Intuos Pro 2 */
hdev->product == 0x399)) { /* MobileStudio Pro */ hdev->product == 0x398 || hdev->product == 0x399)) { /* MobileStudio Pro */
value = (field->logical_maximum - value); value = (field->logical_maximum - value);
if (hdev->product == 0x357 || hdev->product == 0x358 || if (hdev->product == 0x357 || hdev->product == 0x358 ||
hdev->product == 0x392) hdev->product == 0x392)
value = wacom_offset_rotation(input, usage, value, 3, 16); 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) hdev->product == 0x398 || hdev->product == 0x399)
value = wacom_offset_rotation(input, usage, value, 1, 2); value = wacom_offset_rotation(input, usage, value, 1, 2);
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment