]> 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)
commitd07ae4e01093b3b1a715d8c836df4cf1f29e27b2
tree0ce909edccb217f0339238e7c02c558b89586751
parentdd7730216feb3041b6ef669e3bd6220e8171455a
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