]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Input: synaptics - adjust min/max on Thinkpad E540
authorBen Sagal <bensagal@gmail.com>
Mon, 17 Nov 2014 01:23:40 +0000 (17:23 -0800)
committerLuis Henriques <luis.henriques@canonical.com>
Thu, 4 Dec 2014 14:36:31 +0000 (14:36 +0000)
commit bce4f9e764c36bc35dd5c9cf9e057c09f422397d upstream.

The LEN2006 Synaptics touchpad (as found in Thinkpad E540) returns wrong
min max values.

touchpad-edge-detector output:
>  Touchpad SynPS/2 Synaptics TouchPad on /dev/input/event6
>  Move one finger around the touchpad to detect the actual edges
>  Kernel says:    x [1472..5674], y [1408..4684]
>  Touchpad sends: x [1264..5675], y [1171..4688]

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=88211
Signed-off-by: Binyamin Sagal <bensagal@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/input/mouse/synaptics.c

index 3dcdeb78564920727d801f1735d796cf21eff5fd..2d992a94f5dc68cedfb8905284a0c1766d48b542 100644 (file)
@@ -140,6 +140,10 @@ static const struct min_max_quirk min_max_pnpid_table[] = {
                (const char * const []){"LEN2001", NULL},
                1024, 5022, 2508, 4832
        },
+       {
+               (const char * const []){"LEN2006", NULL},
+               1264, 5675, 1171, 4688
+       },
        { }
 };