Merge branch 'for-4.15/wacom' into for-linus
[muen/linux.git] / drivers / hid / wacom_sys.c
index 906e654fb0ba42fe85b49e3813beebabe86d7b3e..ee71ad9b6cc1693e14a585848ca9ad3289f06454 100644 (file)
@@ -196,6 +196,13 @@ static void wacom_feature_mapping(struct hid_device *hdev,
                kfree(data);
                break;
        }
+
+       if (hdev->vendor == USB_VENDOR_ID_WACOM &&
+           hdev->product == 0x4200 /* Dell Canvas 27 */ &&
+           field->application == HID_UP_MSVENDOR) {
+               wacom->wacom_wac.mode_report = field->report->id;
+               wacom->wacom_wac.mode_value = 2;
+       }
 }
 
 /*