]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Input: elantech - fix V4 report decoding for module with middle key
author??? <kt.liao@emc.com.tw>
Tue, 3 Jul 2018 05:18:00 +0000 (07:18 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:30:27 +0000 (12:30 +0200)
commit838cc254e053cda64f98a5dfe53f472ce79e2377
tree7360d04c5d4c7affa4af08cd0cf69e81debb1f06
parent84d28cc43f2d9820bd97e8dc428b00483322f660
Input: elantech - fix V4 report decoding for module with middle key

BugLink: https://bugs.launchpad.net/bugs/1779802
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>
(cherry picked from commit e0ae2519ca004a628fa55aeef969c37edce522d3)
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Acked-by: Hui Wang <hui.wang@canonical.com>
Acked-By: Wen-chien Jesse Sung <jesse.sung@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/input/mouse/elantech.c