Skip to content

Commit 384225c

Browse files
PinglinuxJiri Kosina
authored andcommitted
HID: wacom: add new MobileStudio Pro support
Add product ID for new MobileStudio Pro. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 15893fa commit 384225c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/hid/wacom_wac.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,12 +2028,14 @@ static void wacom_wac_pad_event(struct hid_device *hdev, struct hid_field *field
20282028
*/
20292029
if (hdev->vendor == 0x56a &&
20302030
(hdev->product == 0x34d || hdev->product == 0x34e || /* MobileStudio Pro */
2031-
hdev->product == 0x357 || hdev->product == 0x358)) { /* Intuos Pro 2 */
2031+
hdev->product == 0x357 || hdev->product == 0x358 || /* Intuos Pro 2 */
2032+
hdev->product == 0x399)) { /* MobileStudio Pro */
20322033
value = (field->logical_maximum - value);
20332034

20342035
if (hdev->product == 0x357 || hdev->product == 0x358)
20352036
value = wacom_offset_rotation(input, usage, value, 3, 16);
2036-
else if (hdev->product == 0x34d || hdev->product == 0x34e)
2037+
else if (hdev->product == 0x34d || hdev->product == 0x34e ||
2038+
hdev->product == 0x399)
20372039
value = wacom_offset_rotation(input, usage, value, 1, 2);
20382040
}
20392041
else {

0 commit comments

Comments
 (0)