summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorKukjin Kim2010-08-06 14:49:18 +0200
committerKukjin Kim2010-08-06 14:49:18 +0200
commitd61bd77ff1e7c7a0a381c6e656dbc07b37510f37 (patch)
tree838f7b1c4d931814fbbc30643bb423f409e6daba /drivers/hid/hid-input.c
parentMerge branch 'next-s5p' into for-next (diff)
parentARM: SAMSUNG: Fix on inclusion mach/gpio.h for Samsung SoCs (diff)
downloadkernel-qcow2-linux-d61bd77ff1e7c7a0a381c6e656dbc07b37510f37.tar.gz
kernel-qcow2-linux-d61bd77ff1e7c7a0a381c6e656dbc07b37510f37.tar.xz
kernel-qcow2-linux-d61bd77ff1e7c7a0a381c6e656dbc07b37510f37.zip
Merge branch 'next-samsung' into for-next
Conflicts: arch/arm/mach-s5p6440/Kconfig arch/arm/mach-s5p6442/Kconfig arch/arm/mach-s5pc100/Kconfig arch/arm/mach-s5pv210/Kconfig arch/arm/mach-s5pv210/cpu.c arch/arm/plat-samsung/include/plat/sdhci.h
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 7a0d2e4661a1..69d152e16a6a 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -534,6 +534,9 @@ mapped:
input_set_abs_params(input, usage->code, a, b, (b - a) >> 8, (b - a) >> 4);
else input_set_abs_params(input, usage->code, a, b, 0, 0);
+ /* use a larger default input buffer for MT devices */
+ if (usage->code == ABS_MT_POSITION_X && input->hint_events_per_packet == 0)
+ input_set_events_per_packet(input, 60);
}
if (usage->type == EV_ABS &&