Input: elantech - report multitouch with proper ABS_MT messages
commit89eec4d71e0a4e47a2f12a08992ada7500ea78a0
authorÉric Piel <E.A.B.Piel@tudelft.nl>
Tue, 17 May 2011 05:45:54 +0000 (16 22:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 17 May 2011 05:48:39 +0000 (16 22:48 -0700)
treef20c42679ecca9939454ca95427918282e9ada6e
parentf941c705f68fa62f694678bf2efde64dfb9962bb
Input: elantech - report multitouch with proper ABS_MT messages

Multitouch info was reported only via a old protocol used by the
proprietary X driver from elantech. Let's report the multitouch info
also following the official MT protocol. It's semi-mt because the device
only reports the lowest/highest coordinates.

This was done following the multi-touch-protocol.txt documentation, and
inspired by the bcm5974 and elantech implementations. Testing was light
as there is not many applications using this protocol yet, but the X
synaptics driver didn't complain and the X multitouch driver behaved
correctly.

Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/elantech.c