aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-multitouch.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2013-03-22 13:38:34 -0400
committerJiri Kosina <jkosina@suse.cz>2013-03-27 09:02:47 -0400
commitfb4d8d98dc24f66f7f98e6506fad63e1c320cd82 (patch)
treeda259a586a8c46f72dc9626a46e4cc7bfb87f314 /drivers/hid/hid-multitouch.c
parent49a5a827a0ba952612371af65b45b7b57d7ffece (diff)
HID: multitouch: force BTN_STYLUS for pen devices
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>
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
-rw-r--r--drivers/hid/hid-multitouch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 55551746d235..aceaf6c08878 100644
--- 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,
418 mt_free_input_name(hi); 418 mt_free_input_name(hi);
419 hi->input->name = name; 419 hi->input->name = name;
420 } 420 }
421
422 /* force BTN_STYLUS to allow tablet matching in udev */
423 __set_bit(BTN_STYLUS, hi->input->keybit);
421} 424}
422 425
423static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi, 426static int mt_touch_input_mapping(struct hid_device *hdev, struct hid_input *hi,