]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - only use first T9 instance
authorNick Dyer <nick.dyer@itdev.co.uk>
Fri, 27 Jul 2018 18:44:20 +0000 (11:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 Jul 2018 18:59:28 +0000 (11:59 -0700)
commite05e2be2af8c3312e4ffd7bfa2c01a725ec8aa8e
tree0cd19fab7c302c5a46faf8cf88a8d8253d615634
parenta9119a7d12fb436627002bbeb1dfe7aecd06e874
Input: atmel_mxt_ts - only use first T9 instance

The driver only registers one input device, which uses the screen
parameters from the first T9 instance. The first T63 instance also uses
those parameters.

It is incorrect to send input reports from the second instances of these
objects if they are enabled: the input scaling will be wrong and the
positions will be mashed together.

This also causes problems on Android if the number of slots exceeds 32.

In the future, this could be handled by looking for enabled touch object
instances and creating an input device for each one.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Benson Leung <bleung@chromium.org>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c