aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_wac.c
diff options
context:
space:
mode:
authorAristeu Rozanski <aris@redhat.com>2011-06-22 04:17:17 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-06-22 04:26:09 -0400
commit1483f5513b2d215216ad56c618b42454c5bc1e4d (patch)
tree898b25d03623341ce6998c5a7da0959615f12c82 /drivers/input/tablet/wacom_wac.c
parent71c86ce59791bcd67af937bbea719a508079d7c2 (diff)
Input: wacom - use only one interface with DTU-2231
The Wacom DTU-2231 tablet has two interfaces on its default configuration and both have HID class, leading to the creation of two input devices instead of one. Only the first one is used, so filter out the second. Signed-off-by: Aristeu Rozanski <aris@redhat.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet/wacom_wac.c')
-rw-r--r--drivers/input/tablet/wacom_wac.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index cc6c917e1164..2ea0d2e55a4e 100644
--- a/drivers/input/tablet/wacom_wac.c
+++ b/drivers/input/tablet/wacom_wac.c
@@ -15,6 +15,7 @@
15#include "wacom_wac.h" 15#include "wacom_wac.h"
16#include "wacom.h" 16#include "wacom.h"
17#include <linux/input/mt.h> 17#include <linux/input/mt.h>
18#include <linux/hid.h>
18 19
19/* resolution for penabled devices */ 20/* resolution for penabled devices */
20#define WACOM_PL_RES 20 21#define WACOM_PL_RES 20
@@ -1486,6 +1487,11 @@ static const struct wacom_features wacom_features_0x6004 =
1486 USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \ 1487 USB_DEVICE(USB_VENDOR_ID_WACOM, prod), \
1487 .driver_info = (kernel_ulong_t)&wacom_features_##prod 1488 .driver_info = (kernel_ulong_t)&wacom_features_##prod
1488 1489
1490#define USB_DEVICE_DETAILED(prod, class, sub, proto) \
1491 USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_WACOM, prod, class, \
1492 sub, proto), \
1493 .driver_info = (kernel_ulong_t)&wacom_features_##prod
1494
1489#define USB_DEVICE_LENOVO(prod) \ 1495#define USB_DEVICE_LENOVO(prod) \
1490 USB_DEVICE(USB_VENDOR_ID_LENOVO, prod), \ 1496 USB_DEVICE(USB_VENDOR_ID_LENOVO, prod), \
1491 .driver_info = (kernel_ulong_t)&wacom_features_##prod 1497 .driver_info = (kernel_ulong_t)&wacom_features_##prod
@@ -1548,7 +1554,13 @@ const struct usb_device_id wacom_ids[] = {
1548 { USB_DEVICE_WACOM(0xC5) }, 1554 { USB_DEVICE_WACOM(0xC5) },
1549 { USB_DEVICE_WACOM(0xC6) }, 1555 { USB_DEVICE_WACOM(0xC6) },
1550 { USB_DEVICE_WACOM(0xC7) }, 1556 { USB_DEVICE_WACOM(0xC7) },
1551 { USB_DEVICE_WACOM(0xCE) }, 1557 /*
1558 * DTU-2231 has two interfaces on the same configuration,
1559 * only one is used.
1560 */
1561 { USB_DEVICE_DETAILED(0xCE, USB_CLASS_HID,
1562 USB_INTERFACE_SUBCLASS_BOOT,
1563 USB_INTERFACE_PROTOCOL_MOUSE) },
1552 { USB_DEVICE_WACOM(0xD0) }, 1564 { USB_DEVICE_WACOM(0xD0) },
1553 { USB_DEVICE_WACOM(0xD1) }, 1565 { USB_DEVICE_WACOM(0xD1) },
1554 { USB_DEVICE_WACOM(0xD2) }, 1566 { USB_DEVICE_WACOM(0xD2) },