]> git.karo-electronics.de Git - linux-beck.git/commit
Input: elantech - better support all those v2 variants
authorJJ Ding <jj_ding@emc.com.tw>
Wed, 21 Sep 2011 05:42:51 +0000 (22:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 21 Sep 2011 05:46:27 +0000 (22:46 -0700)
commit84a90b610a1473d732818ec5d041ab18eae77f14
tree23826221db7299bcce38f3ad35d4c42bd46531ad
parent1dc6edec127e1fdb89d246189c232fe635d2f921
Input: elantech - better support all those v2 variants

V2 hardware has many variants. This patch adddresses two issues:

 - some model also has debounce packets, but with a different signature
   than v3. Now we just check debounce for all v2 hardware.

 - due to different scanning methods the hardware uses, x and y ranges have
   to be calculated differently. And for some specific versions, we can just
   see them as custom-made, so set {x, y} the same values as Windows driver
   does.

Signed-off-by: JJ Ding <jj_ding@emc.com.tw>
Tested-by: Richard Schütz <r.schtz@t-online.de>
Reviewed-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/elantech.c
drivers/input/mouse/elantech.h