]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 22 Jun 2018 00:20:11 +0000 (17:20 -0700)
commitf967b0759ce53913b1d4d0e9f7a255549f5daa45
treefb652054b8b05e42b992e3cee5c31f27dccebc99
parent759682c6bdf6c96a27622617367f91f39aa8e558
Input: elantech - fix V4 report decoding for module with middle key

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>
drivers/input/mouse/elantech.c