Skip to content

Commit

Permalink
HID: wacom: add new MobileStudio Pro 13 support
Browse files Browse the repository at this point in the history
wacom_wac_pad_event is the only routine we need to update.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
[ping.cheng@wacom.com: Imported into input-wacom repository (bbbe3ac8f943)]
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
  • Loading branch information
Pinglinux authored and Ping Cheng committed Sep 5, 2019
1 parent 5d053dc commit c7005ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 4.5/wacom_wac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2108,14 +2108,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 == 0x357 || hdev->product == 0x358 || /* 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);

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)
hdev->product == 0x398 || hdev->product == 0x399)
value = wacom_offset_rotation(input, usage, value, 1, 2);
}
else {
Expand Down

0 comments on commit c7005ad

Please sign in to comment.