Input: wacom - add ABS_DISTANCE to Bamboo Pen reports
authorChris Bagwell <chris@cnpbagwell.com>
Mon, 10 Oct 2011 15:52:13 +0000 (08:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Oct 2011 15:55:34 +0000 (08:55 -0700)
commitc18c2cec31881130c591ea60590859002945cd96
tree2874b21a6c98cab5d3ac8d3ea8add92620de9187
parent3d11ae8190c1b273d655b4d8d82be36754587910
Input: wacom - add ABS_DISTANCE to Bamboo Pen reports

Tablet reports a distance of 0 right at highest point possible
to be in proximity and distance_max when touching tablet. Inverse
the distance since user land has no way of knowing ABS_DISTANCE
is not distance from tablet.

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/wacom_wac.c