summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/wacom_w8001.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-12-01 22:31:28 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-12-04 00:58:31 +0100
commitec9acda7360de7ee70cc0db36f41c1fd819a3310 (patch)
tree9bc1f9b2e89e22fc5188e4f37ce2701c8eafe52d /drivers/input/touchscreen/wacom_w8001.c
parentInput: wacom_w8001 - use __set_bit for evbits (diff)
downloadlinux-ec9acda7360de7ee70cc0db36f41c1fd819a3310.tar.xz
linux-ec9acda7360de7ee70cc0db36f41c1fd819a3310.zip
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>
Diffstat (limited to 'drivers/input/touchscreen/wacom_w8001.c')
-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 d194d57c21b6..222006ee23fa 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);