Input: wacom - make sure touch_max is set for touch devices
authorPing Cheng <pinglinux@gmail.com>
Tue, 26 Nov 2013 02:43:45 +0000 (18:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Nov 2013 03:03:37 +0000 (19:03 -0800)
commit1d0d6df02750b4a6f466768cbfbf860e24f4c8d4
tree5212ea26707c1914ed64bcc1311d5f863b8e3bbd
parent0b279da7af779fa515b70c0f4127001cab22ea86
Input: wacom - make sure touch_max is set for touch devices

Old single touch Tablet PCs do not have touch_max set at
wacom_features. Since touch device at lease supports one
finger, assign touch_max to 1 when touch usage is defined
in its HID Descriptor and touch_max is not pre-defined.

Tested-by: Jason Gerecke <killertofu@gmail.com>
Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/wacom_sys.c