]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Input: elantech - relax signature checks
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 19 May 2010 17:11:13 +0000 (10:11 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:07 +0000 (15:55 -0700)
commit1747aac65b0851691c43f3aa70b0e9388b96b107
treeda80068966d6e2b384c81346d853fa051f7c3fa9
parent8bac623e5bbf1136e16b8349e0f470ccd0ea3046
Input: elantech - relax signature checks

commit a083632eaf6231162b33e40561cfec6a9c156945 upstream.

Apparently there are Elantech touchpads that report non-zero in the 2nd byte
of their signature. Adjust the detection routine so that if 2nd byte is
zero and 3rd byte contains value that is not a valid report rate, we still
assume that signature is valid.

Tested-by: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
[bwh: Adjust context for 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/mouse/elantech.c