Input: ALPS - fix touchpad detection when buttons are pressed
authorAkio Idehara <zbe64533@gmail.com>
Thu, 8 Mar 2012 19:48:12 +0000 (13:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:39 +0000 (12:31 -0700)
commit349409f0ccd8ee34a3fe3d02f843b3fcec505719
tree584062efffe5e2967b83b5859002ce860ec0430d
parentd6bc69349915e2d58499165851a17280c97126ac
Input: ALPS - fix touchpad detection when buttons are pressed

commit 99c90ab31fad855b9da9dee3a5aa6c27f263e9d6 upstream.

ALPS touchpad detection fails if some buttons of ALPS are pressed.
The reason is that the "E6" query response byte is different from
what is expected.

This was tested on a Toshiba Portege R500.

Signed-off-by: Akio Idehara <zbe64533@gmail.com>
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/alps.c