aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_sys.c
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2013-11-25 21:44:55 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-11-25 22:03:38 -0500
commitb5fd2a3e92ca5c8c1f3c20d31ac5daed3ec4d604 (patch)
tree927296bae298e76ffa9a3e8ce572fe9e388f29e2 /drivers/input/tablet/wacom_sys.c
parent1d0d6df02750b4a6f466768cbfbf860e24f4c8d4 (diff)
Input: wacom - add support for three new Intuos devices
Two tablets in this series support both pen and touch. One (Intuos S) only supports pen. This patch also updates the driver to process wireless devices that do not support touch interface. Tested-by: Jason Gerecke <killertofu@gmail.com> Reviewed-by: Chris Bagwell <chris@cnpbagwell.com> Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet/wacom_sys.c')
-rw-r--r--drivers/input/tablet/wacom_sys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index 3d71b608330e..3a7d99c720cd 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -1198,7 +1198,8 @@ static void wacom_wireless_work(struct work_struct *work)
1198 goto fail; 1198 goto fail;
1199 1199
1200 /* Touch interface */ 1200 /* Touch interface */
1201 if (wacom_wac1->features.touch_max) { 1201 if (wacom_wac1->features.touch_max ||
1202 wacom_wac1->features.type == INTUOSHT) {
1202 wacom_wac2->features = 1203 wacom_wac2->features =
1203 *((struct wacom_features *)id->driver_info); 1204 *((struct wacom_features *)id->driver_info);
1204 wacom_wac2->features.pktlen = WACOM_PKGLEN_BBTOUCH3; 1205 wacom_wac2->features.pktlen = WACOM_PKGLEN_BBTOUCH3;
@@ -1321,7 +1322,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
1321 * HID descriptor. If this is the touch interface (wMaxPacketSize 1322 * HID descriptor. If this is the touch interface (wMaxPacketSize
1322 * of WACOM_PKGLEN_BBTOUCH3), override the table values. 1323 * of WACOM_PKGLEN_BBTOUCH3), override the table values.
1323 */ 1324 */
1324 if (features->type >= INTUOS5S && features->type <= INTUOSPL) { 1325 if (features->type >= INTUOS5S && features->type <= INTUOSHT) {
1325 if (endpoint->wMaxPacketSize == WACOM_PKGLEN_BBTOUCH3) { 1326 if (endpoint->wMaxPacketSize == WACOM_PKGLEN_BBTOUCH3) {
1326 features->device_type = BTN_TOOL_FINGER; 1327 features->device_type = BTN_TOOL_FINGER;
1327 features->pktlen = WACOM_PKGLEN_BBTOUCH3; 1328 features->pktlen = WACOM_PKGLEN_BBTOUCH3;
@@ -1391,7 +1392,6 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
1391 goto fail5; 1392 goto fail5;
1392 } 1393 }
1393 } 1394 }
1394
1395 return 0; 1395 return 0;
1396 1396
1397 fail5: wacom_destroy_leds(wacom); 1397 fail5: wacom_destroy_leds(wacom);