]> git.baikalelectronics.ru Git - kernel.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)
commitd86db3e83adaea2f512d8eb91ca48b2c89eb50e1
tree23826221db7299bcce38f3ad35d4c42bd46531ad
parentfb95f43189b965f75bf69d2fa53a614cdf76125f
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