Input: wacom_w8001 - set BTN_TOOL_DOUBLETAP if we have 2fg support
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 1 Dec 2015 21:31:28 +0000 (13:31 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Dec 2015 23:58:31 +0000 (15:58 -0800)
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>
drivers/input/touchscreen/wacom_w8001.c

index d194d57c21b63b33ac094540dbc340e61eff1d1d..222006ee23fa571a5b3377b5dc9e08381d0280e4 100644 (file)
@@ -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);