summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-12-01 21:31:28 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-12-03 23:58:31 (GMT)
commitec9acda7360de7ee70cc0db36f41c1fd819a3310 (patch)
tree9bc1f9b2e89e22fc5188e4f37ce2701c8eafe52d
parent86c03f46b9a40b251e4d97f461a13f8b1f18ae17 (diff)
downloadlinux-ec9acda7360de7ee70cc0db36f41c1fd819a3310.tar.xz
Input: wacom_w8001 - set BTN_TOOL_DOUBLETAP if we have 2fg support
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Reviewed-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/wacom_w8001.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c
index d194d57..222006e 100644
--- a/drivers/input/touchscreen/wacom_w8001.c
+++ b/drivers/input/touchscreen/wacom_w8001.c
@@ -471,6 +471,7 @@ static int w8001_setup(struct w8001 *w8001)
case 5:
w8001->pktlen = W8001_PKTLEN_TOUCH2FG;
+ __set_bit(BTN_TOOL_DOUBLETAP, dev->keybit);
input_mt_init_slots(dev, 2, 0);
input_set_abs_params(dev, ABS_MT_POSITION_X,
0, touch.x, 0, 0);