Input: synaptics - add support for ForcePads
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 30 Aug 2014 20:51:06 +0000 (13:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:54:12 +0000 (14:54 -0700)
commit13ea4bd23a2d6abb0d6bab9e138cecb4f55fe211
treebb03ac405ab9e1c5c58f12caef9da0cac1aa79c2
parent08fb11395c6d803a97b45e463375cb220d1c84d5
Input: synaptics - add support for ForcePads

commit 5715fc764f7753d464dbe094b5ef9cffa6e479a4 upstream.

ForcePads are found on HP EliteBook 1040 laptops. They lack any kind of
physical buttons, instead they generate primary button click when user
presses somewhat hard on the surface of the touchpad. Unfortunately they
also report primary button click whenever there are 2 or more contacts
on the pad, messing up all multi-finger gestures (2-finger scrolling,
multi-finger tapping, etc). To cope with this behavior we introduce a
delay (currently 50 msecs) in reporting primary press in case more
contacts appear.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/synaptics.c
drivers/input/mouse/synaptics.h