提交 fb4d8d98 编写于 作者: B Benjamin Tissoires 提交者: Jiri Kosina

HID: multitouch: force BTN_STYLUS for pen devices

The "tablet" udev rule relies on BTN_STYLUS to be set.
Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 49a5a827
......@@ -418,6 +418,9 @@ static void mt_pen_input_configured(struct hid_device *hdev,
mt_free_input_name(hi);
hi->input->name = name;
}
/* force BTN_STYLUS to allow tablet matching in udev */
__set_bit(BTN_STYLUS, hi->input->keybit);
}
static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册