aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2017-11-03 13:29:47 -0400
committerJiri Kosina <jkosina@suse.cz>2017-11-10 03:39:44 -0500
commit5b01b3b8b122fde7fbe116803f7863667b4c5beb (patch)
treedd42a231096a517f03c23781763828b6856a0646
parent9e429d564926d3bca49907fa03031da705ad6f2c (diff)
HID: Wacom: switch Dell canvas into highres mode
The Dell Canvas exports 2 collections for the Pen part. The only difference between the 2 is that the default one has half the resolution of the second one. The Windows driver switches the tablet into the second mode, so we should behave the same. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/wacom_sys.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 735bfbbcaa82..ab3178bef0b6 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -196,6 +196,13 @@ static void wacom_feature_mapping(struct hid_device *hdev,
196 kfree(data); 196 kfree(data);
197 break; 197 break;
198 } 198 }
199
200 if (hdev->vendor == USB_VENDOR_ID_WACOM &&
201 hdev->product == 0x4200 /* Dell Canvas 27 */ &&
202 field->application == HID_UP_MSVENDOR) {
203 wacom->wacom_wac.mode_report = field->report->id;
204 wacom->wacom_wac.mode_value = 2;
205 }
199} 206}
200 207
201/* 208/*