projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49a5a82
)
HID: multitouch: force BTN_STYLUS for pen devices
author
Benjamin Tissoires
<benjamin.tissoires@redhat.com>
Fri, 22 Mar 2013 17:38:34 +0000
(18:38 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 27 Mar 2013 13:02:47 +0000
(14:02 +0100)
The "tablet" udev rule relies on BTN_STYLUS to be set.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-multitouch.c
b/drivers/hid/hid-multitouch.c
index
5555174
..
aceaf6c
100644
(file)
--- a/
drivers/hid/hid-multitouch.c
+++ b/
drivers/hid/hid-multitouch.c
@@
-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,