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)
commit04d5ce620f794f1df69b5f1b9ad62910fea547f1
tree0ce909edccb217f0339238e7c02c558b89586751
parent3d712af637e19a1c139c2b586c08b2a56bdff8c8
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