Input: Add support of Synaptics Clickpad device
authorTakashi Iwai <tiwai@suse.de>
Mon, 19 Apr 2010 17:37:21 +0000 (10:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:04 +0000 (15:55 -0700)
commit450aae08249e89e49eea41d080eb730b9dfb8688
tree84be167b9e249d37d7fd895d9c3c17c87e12f643
parent92da734e50b7ff290f0c2333281a9c17e4aafd1f
Input: Add support of Synaptics Clickpad device

commit 5f57d67da87332a9a1ba8fa7a33bf0680e1c76e7 upstream.

The new type of touchpads can be detected via a new query command
0x0c. The clickpad flags are in cap[0]:4 and cap[1]:0 bits.

When the device is detected, the driver now reports only the left
button as the supported buttons so that X11 driver can detect that
the device is Clickpad. A Clickpad device gives the button events
only as the middle button. The kernel driver morphs to the left
button. The real handling of Clickpad is done rather in X driver
side.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/mouse/synaptics.c
drivers/input/mouse/synaptics.h