From: Jason Gerecke Date: Thu, 4 Oct 2012 00:19:11 +0000 (-0700) Subject: Input: wacom - report correct touch contact size for I5/Bamboo X-Git-Tag: v3.7-rc1~23^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e90495498cc6f1aa15e7667a695908860938b3e;p=pandora-kernel.git Input: wacom - report correct touch contact size for I5/Bamboo This changes how the touch packets for Intuos5 and 3rd-gen Bamboo are interpreted, so that proper values for the MAJOR and MINOR axes are reported. Instead of using the amplitude field (data[6]), we use the size field (data[5]) and do some calculation to transform it from a scaled-down area into axis lengths. Note that even though we assume a circular contact, both MAJOR and MINOR are reported since the resolution of the X and Y axes differ. Signed-off-by: Jason Gerecke Reviewed-by: Chris Bagwell Acked-by: Ping Cheng Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed