Input: wacom - override 'pressure_max' with value from HID_USAGE_PRESSURE
authorJason Gerecke <killertofu@gmail.com>
Sat, 19 Apr 2014 20:49:37 +0000 (13:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Apr 2014 20:57:34 +0000 (13:57 -0700)
commite9fc413f4a5ebd9f0f7bdf923c43191e99fc1970
treee7e746e2ec31da4df47ca36494396962b03944b5
parent5866d9e3b7ecdf96a6089d12bb65736d7c473bce
Input: wacom - override 'pressure_max' with value from HID_USAGE_PRESSURE

The 0xEC sensor is used in multiple tablet PCs and curiously has versions
that report 256 levels of pressure (Samsung Slate 7) as well as versions
that report 1024 levels (Lenovo Thinkpad Yoga).  To allow both versions to
work properly, we allow the value of HID_USAGE_PRESSURE reported to
override pressure_max.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Tested-by: Aaron Skomra <Aaron.Skomra@wacom.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/wacom_sys.c