]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elan_i2c - add support for high resolution reports
authorJingle Wu <jingle.wu@emc.com.tw>
Mon, 20 Jul 2020 19:46:10 +0000 (12:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Jul 2020 17:11:18 +0000 (10:11 -0700)
commitef8cade6e7804d6e675363d9ba879b8d44d8b5ee
tree0ce909edccb217f0339238e7c02c558b89586751
parentc6a4394ddefcd9eb3872067ecc49d0d8a377dde0
Input: elan_i2c - add support for high resolution reports

Newer controllers (identified as "pattern" version 2) send higher
resolution reports, with 16-bit X and Y coordinates (previous generations
used 12-bit values). These new high resolution reports use report ID of
0x60.

SMbus controllers use the same buffer size for both the new and old
reports, and because of that high resolution reports no longer carry
area of contact data with SMbus.

Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw>
Link: https://lore.kernel.org/r/20200710054116.5529-1-jingle.wu@emc.com.tw
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c.h
drivers/input/mouse/elan_i2c_core.c
drivers/input/mouse/elan_i2c_i2c.c
drivers/input/mouse/elan_i2c_smbus.c