提交 418b573b 编写于 作者: P Ping Cheng 提交者: Jiri Kosina

HID: wacom: convert Wacom custom usages to standard HID usages

Otherwise the switch would not catch the proper usages.
Signed-off-by: NPing Cheng <ping.cheng@wacom.com>
Reviewed-by: NPing Cheng <ping.cheng@wacom.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 57832512
......@@ -394,6 +394,7 @@ static void wacom_usage_mapping(struct hid_device *hdev,
struct wacom_features *features = &wacom->wacom_wac.features;
bool finger = WACOM_FINGER_FIELD(field);
bool pen = WACOM_PEN_FIELD(field);
unsigned equivalent_usage = wacom_equivalent_usage(usage->hid);
/*
* Requiring Stylus Usage will ignore boot mouse
......@@ -409,7 +410,7 @@ static void wacom_usage_mapping(struct hid_device *hdev,
wacom_hid_usage_quirk(hdev, field, usage);
switch (usage->hid) {
switch (equivalent_usage) {
case HID_GD_X:
features->x_max = field->logical_maximum;
if (finger) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册