Input: elantech - fix packet check for v3 and v4 hardware
authorMatteo Delfino <kendatsuba@gmail.com>
Thu, 15 Aug 2013 07:09:41 +0000 (00:09 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 25 Aug 2013 00:52:35 +0000 (17:52 -0700)
commitacc0444bf83ea559fa84b527b1f49cf20b0df253
tree5b059d18f611ff16d89084148d91ddb552dcd802
parentf41a64eeabbb2daa70f2b39d0dfb59c91904a1b0
Input: elantech - fix packet check for v3 and v4 hardware

The signatures of v3 and v4 packets change depending on the value of a
hardware flag called 'crc_enabled'. The packet type detection must change
accordingly.

This patch also restores a consistency check for v4 packets inadvertently
removed by commit:

9eebed7de660c0b5ab129a9de4f89d20b60de68c
Input: elantech - fix for newer hardware versions (v7)

A note about the naming convention: v3 hardware is associated with IC body
v5 while v4 hardware is associated with IC body v6 and v7. The above commit
refers to IC body v7, not to v7 hardware.

Tested on Samsung NP730U3E (fw = 0x675f05, ICv7, crc_enabled = 1)

Tested-by: Giovanni Frigione <gio.frigione@gmail.com>
Signed-off-by: Matteo Delfino <kendatsuba@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c
drivers/input/mouse/elantech.h