diff options
Diffstat (limited to 'drivers/hid/wacom_sys.c')
-rw-r--r-- | drivers/hid/wacom_sys.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 654202941d30..f0568a7e6de9 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c | |||
@@ -173,10 +173,8 @@ static void wacom_usage_mapping(struct hid_device *hdev, | |||
173 | { | 173 | { |
174 | struct wacom *wacom = hid_get_drvdata(hdev); | 174 | struct wacom *wacom = hid_get_drvdata(hdev); |
175 | struct wacom_features *features = &wacom->wacom_wac.features; | 175 | struct wacom_features *features = &wacom->wacom_wac.features; |
176 | bool finger = (field->logical == HID_DG_FINGER) || | 176 | bool finger = WACOM_FINGER_FIELD(field); |
177 | (field->physical == HID_DG_FINGER); | 177 | bool pen = WACOM_PEN_FIELD(field); |
178 | bool pen = (field->logical == HID_DG_STYLUS) || | ||
179 | (field->physical == HID_DG_STYLUS); | ||
180 | 178 | ||
181 | /* | 179 | /* |
182 | * Requiring Stylus Usage will ignore boot mouse | 180 | * Requiring Stylus Usage will ignore boot mouse |
@@ -405,6 +403,9 @@ static int wacom_query_tablet_data(struct hid_device *hdev, | |||
405 | else if (features->type == WACOM_24HDT || features->type == CINTIQ_HYBRID) { | 403 | else if (features->type == WACOM_24HDT || features->type == CINTIQ_HYBRID) { |
406 | return wacom_set_device_mode(hdev, 18, 3, 2); | 404 | return wacom_set_device_mode(hdev, 18, 3, 2); |
407 | } | 405 | } |
406 | else if (features->type == WACOM_27QHDT) { | ||
407 | return wacom_set_device_mode(hdev, 131, 3, 2); | ||
408 | } | ||
408 | } else if (features->device_type == BTN_TOOL_PEN) { | 409 | } else if (features->device_type == BTN_TOOL_PEN) { |
409 | if (features->type <= BAMBOO_PT && features->type != WIRELESS) { | 410 | if (features->type <= BAMBOO_PT && features->type != WIRELESS) { |
410 | return wacom_set_device_mode(hdev, 2, 2, 2); | 411 | return wacom_set_device_mode(hdev, 2, 2, 2); |