Skip to contentSkip to conversation

Input: wacom_serial4 - prepare for wacom USB moving to HID

PATCH In review Dmitry Torokhov 2 participants 3 messages Jul 24, 2014 – Jul 25, 2014

Subsystems (3)
lore
Share & tools
lore

Dmitry Torokhov

author maintainer
#0 lore raw

PATCH 1/1 Input: wacom_serial4 - prepare for wacom USB moving to HID

wacom_wac.h will be moving to drivers/hid. Since we only need 3 definitions from it let's simply copy them over.

---
 drivers/input/tablet/wacom_serial4.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/input/tablet/wacom_serial4.c +5 -0
index d3d251e..deef50e 100644
@@ -149,6 +149,11 @@ MODULE_LICENSE("GPL");
 #define F_HAS_STYLUS2		0x02
 #define F_HAS_SCROLLWHEEL	0x04
 
+/* device IDs */
+#define STYLUS_DEVICE_ID	0x02
+#define CURSOR_DEVICE_ID	0x06
+#define ERASER_DEVICE_ID	0x0A
+
 enum { STYLUS = 1, ERASER, CURSOR };
 
 static const struct {
Signature · 5 lines
2.0.0.526.g5318336


-- 
Dmitry
#1 lore raw

Hi,

Quoted 4 lines · Dmitry Torokhov

wacom_wac.h will be moving to drivers/hid. Since we only need 3 definitions from it let's simply copy them over.

Ack, but you will want to drop the #include of wacom_wac.h yoo.

Regards,

Hans

Quoted 21 lines
---
 drivers/input/tablet/wacom_serial4.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/input/tablet/wacom_serial4.c +5 -0
index d3d251e..deef50e 100644
@@ -149,6 +149,11 @@ MODULE_LICENSE("GPL");
 #define F_HAS_STYLUS2		0x02
 #define F_HAS_SCROLLWHEEL	0x04
 
+/* device IDs */
+#define STYLUS_DEVICE_ID	0x02
+#define CURSOR_DEVICE_ID	0x06
+#define ERASER_DEVICE_ID	0x0A
+
 enum { STYLUS = 1, ERASER, CURSOR };
 
 static const struct {
author maintainer
#2 lore raw
Quoted 9 lines · Hans de Goede

Hi,

Quoted 4 lines · Dmitry Torokhov

wacom_wac.h will be moving to drivers/hid. Since we only need 3 definitions from it let's simply copy them over.

Ack, but you will want to drop the #include of wacom_wac.h yoo.

Right, that was in my v2 ;)

Thanks.

Signature · 1 line
Dmitry