aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/bcm5974.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-06-23 09:30:22 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-06-23 13:05:26 -0700
commitc13aea033cbeb181e7e135f280ecdfca49f90180 (patch)
tree6c403405df21e8f482c51a27bd7c947408d2cea9 /drivers/input/mouse/bcm5974.c
parentInput: evdev - use driver hint to compute size of event buffer (diff)
downloadlinux-dev-c13aea033cbeb181e7e135f280ecdfca49f90180.tar.xz
linux-dev-c13aea033cbeb181e7e135f280ecdfca49f90180.zip
Input: bcm5974 - set the average number of events per MT event packet
The MT devices produce a lot of data. Tell the underlying input device approximately how many events will be sent per synchronization, to allow for better buffering. The number is a template based on continuously reporting details for each finger on a single hand. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/bcm5974.c')
-rw-r--r--drivers/input/mouse/bcm5974.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
index 354c578ec9d3..ea67c49146a3 100644
--- a/drivers/input/mouse/bcm5974.c
+++ b/drivers/input/mouse/bcm5974.c
@@ -312,6 +312,8 @@ static void setup_events_to_report(struct input_dev *input_dev,
__set_bit(BTN_TOOL_TRIPLETAP, input_dev->keybit);
__set_bit(BTN_TOOL_QUADTAP, input_dev->keybit);
__set_bit(BTN_LEFT, input_dev->keybit);
+
+ input_set_events_per_packet(input_dev, 60);
}
/* report button data as logical button state */