]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: synaptics - fix handling of 2-button ClickPads
authorYan Li <yan.i.li@intel.com>
Wed, 1 Dec 2010 07:51:03 +0000 (23:51 -0800)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:44 +0000 (11:03 -0800)
commit23d8a757d065542d5e9557cc20912833085b2395
treeadff80014b7a9f776341371024bb1cd69494a55a
parenteb9b89ea61a1b1787cf5d42ae4366c9a4c53787d
Input: synaptics - fix handling of 2-button ClickPads

commit 3bfa321e662edf90fb8123a02c987c2965fa50bb upstream.

Lenovo S10-3t's ClickPad is a 2-button ClickPad that reports BTN_LEFT
and BTN_RIGHT as normal touchpad, unlike the 1-button ClickPad used in
HP mini 210 that reports solely BTN_MIDDLE.

In 0xc0-cap response, the 1-button ClickPad has the 20-bit set while
2-button ClickPad has the 8-bit set.

This patch makes the kernel only handle 1-button ClickPad specially,
and treat 2-button ClickPad in the same fashion as regular touchpads.

This fixes kernel bug #18122 and MeeGo bug #4807.

Signed-off-by: Yan Li <yan.i.li@intel.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/input/mouse/synaptics.h