mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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>
This commit is contained in:
parent
15893fa401
commit
384225c2a7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user