]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - simplify event reporting
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 28 Jun 2012 13:08:17 +0000 (21:08 +0800)
committerHenrik Rydberg <rydberg@euromail.se>
Fri, 29 Jun 2012 13:58:05 +0000 (15:58 +0200)
commita8b36f6532a213b123251b379b89d03eace43df8
treeb0f87c1dbe7acbe68510525899ed6e227291d318
parentbb3174108dd331af8006a6c3ffc695d2395c8e3e
Input: atmel_mxt_ts - simplify event reporting

Instead of carrying around per-finger state in the driver instance, just
report each finger as it arrives to the input layer, and let the input
layer (evdev) hold the event state (which it does anyway).

Note: this driver does not really do MT-B properly. Each input report
(a group of input events followed by a SYN_REPORT) only contains data for
a single contact.  When multiple fingers are present on a device, each is
properly reported in its own MT_SLOT.  However, there is only ever one
MT_SLOT per SYN_REPORT.  This is fixed in a subsequent patch.

This patch was tested with an mXT224E.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/touchscreen/atmel_mxt_ts.c