Input: elantech - fix V4 report decoding for module with middle key
author??? <kt.liao@emc.com.tw>
Fri, 22 Jun 2018 00:15:32 +0000 (17:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jul 2018 09:25:04 +0000 (11:25 +0200)
commit3d1de95138fbf54bab0049ae669299e3f1a4c4fe
treeeb1cd6b9e7152b00bbd8f980c9c86268c435aa32
parent524a0c6f2efde4262356de3d31769439abb27cb5
Input: elantech - fix V4 report decoding for module with middle key

commit e0ae2519ca004a628fa55aeef969c37edce522d3 upstream.

Some touchpad has middle key and it will be indicated in bit 2 of packet[0].
We need to fix V4 formation's byte mask to prevent error decoding.

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/elantech.c