summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/alps.h
diff options
context:
space:
mode:
authorGeorge Pantalos <gpantalos@gmail.com>2012-05-10 22:31:59 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-05-10 22:32:20 -0700
commit3b7e09fad9582df27fd72edd018a9c59d085f896 (patch)
tree6693b0ca5499dbd6f79d62e5ab69b952bb66e231 /drivers/input/mouse/alps.h
parentae99ea562be0a788ccb583aff21f3d2147de531f (diff)
downloadlinux-3b7e09fad9582df27fd72edd018a9c59d085f896.tar.gz
linux-3b7e09fad9582df27fd72edd018a9c59d085f896.tar.xz
linux-3b7e09fad9582df27fd72edd018a9c59d085f896.zip
Input: ALPS - add semi-MT support for v4 protocol
This patch adds semi-MT support for ALPS v4 protocol touchpads. It is based on the work by Seth Forshee for ALPS v3 and v4 protocol support. Three packets are required to assemble and process the MT data. ST events are reported at once to avoid latency. If there were two contacts or more, report MT data instead of ST events. Thanks to Seth Forshee for providing most of the code, guidance and insight for producing this patch. Signed-off-by: George Pantalos <gpantalos@gmail.com> Acked-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/alps.h')
-rw-r--r--drivers/input/mouse/alps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/mouse/alps.h b/drivers/input/mouse/alps.h
index a00a4ab92a0f..ae1ac354c778 100644
--- a/drivers/input/mouse/alps.h
+++ b/drivers/input/mouse/alps.h
@@ -39,6 +39,8 @@ struct alps_data {
int prev_fin; /* Finger bit from previous packet */
int multi_packet; /* Multi-packet data in progress */
unsigned char multi_data[6]; /* Saved multi-packet data */
+ int x1, x2, y1, y2; /* Coordinates from last MT report */
+ int fingers; /* Number of fingers from MT report */
u8 quirks;
struct timer_list timer;
};