Input: alps - only the Dell Latitude D420/430/620/630 have separate stick button...
authorHans de Goede <hdegoede@redhat.com>
Mon, 26 Oct 2015 08:50:28 +0000 (01:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2015 22:33:38 +0000 (14:33 -0800)
commit250f9c620c988485bea9499146a5c6a58f5b0e2e
tree3a86d917c06debc2bf0d9d691f04fc6e185a1c7a
parent7fd58acc9f6f751aebcee8288d020d959d815445
Input: alps - only the Dell Latitude D420/430/620/630 have separate stick button bits

commit 195562194aad3a0a3915941077f283bcc6347b9b upstream.

commit 92bac83dd79e ("Input: alps - non interleaved V2 dualpoint has
separate stick button bits") assumes that all alps v2 non-interleaved
dual point setups have the separate stick button bits.

Later we limited this to Dell laptops only because of reports that this
broke things on non Dell laptops. Now it turns out that this breaks things
on the Dell Latitude D600 too. So it seems that only the Dell Latitude
D420/430/620/630, which all share the same touchpad / stick combo,
have these separate bits.

This patch limits the checking of the separate bits to only these models
fixing regressions with other models.

Reported-and-tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-By: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/alps.c