aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/mouse/bcm5974.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
index bda873393b0..2ddf05e1d85 100644
--- a/drivers/input/mouse/bcm5974.c
+++ b/drivers/input/mouse/bcm5974.c
@@ -258,6 +258,7 @@ static void setup_events_to_report(struct input_dev *input_dev,
258 __set_bit(BTN_TOOL_FINGER, input_dev->keybit); 258 __set_bit(BTN_TOOL_FINGER, input_dev->keybit);
259 __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit); 259 __set_bit(BTN_TOOL_DOUBLETAP, input_dev->keybit);
260 __set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit); 260 __set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit);
261 __set_bit(BTN_TOOL_QUADTAP, input_dev->keybit);
261 __set_bit(BTN_LEFT, input_dev->keybit); 262 __set_bit(BTN_LEFT, input_dev->keybit);
262} 263}
263 264
@@ -329,7 +330,8 @@ static int report_tp_state(struct bcm5974 *dev, int size)
329 input_report_key(input, BTN_TOUCH, dev->fingers > 0); 330 input_report_key(input, BTN_TOUCH, dev->fingers > 0);
330 input_report_key(input, BTN_TOOL_FINGER, dev->fingers == 1); 331 input_report_key(input, BTN_TOOL_FINGER, dev->fingers == 1);
331 input_report_key(input, BTN_TOOL_DOUBLETAP, dev->fingers == 2); 332 input_report_key(input, BTN_TOOL_DOUBLETAP, dev->fingers == 2);
332 input_report_key(input, BTN_TOOL_TRIPLETAP, dev->fingers > 2); 333 input_report_key(input, BTN_TOOL_TRIPLETAP, dev->fingers == 3);
334 input_report_key(input, BTN_TOOL_QUADTAP, dev->fingers > 3);
333 335
334 input_report_abs(input, ABS_PRESSURE, abs_p); 336 input_report_abs(input, ABS_PRESSURE, abs_p);
335 input_report_abs(input, ABS_TOOL_WIDTH, abs_w); 337 input_report_abs(input, ABS_TOOL_WIDTH, abs_w);