diff options
author | Jason Gerecke <killertofu@gmail.com> | 2017-01-25 15:08:36 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-01-26 15:46:43 -0500 |
commit | 5ba13c6495010cd39e0ecb89ce1e546189bd6006 (patch) | |
tree | 36f5715fb79a4928d121ea52c325bff2fa128050 | |
parent | b9e06256932bd462b7ee392d7742a79ade679abe (diff) |
HID: wacom: Move WAC_CMD_* into wacom_wac.h
Centralize our definition of report IDs by moving those for device commands
into wacom_wac.h alongside those for input reports.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/wacom_sys.c | 8 | ||||
-rw-r--r-- | drivers/hid/wacom_wac.h | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index e1aa51abac30..4dd7b80ffca4 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c | |||
@@ -16,15 +16,7 @@ | |||
16 | #include <linux/input/mt.h> | 16 | #include <linux/input/mt.h> |
17 | 17 | ||
18 | #define WAC_MSG_RETRIES 5 | 18 | #define WAC_MSG_RETRIES 5 |
19 | |||
20 | #define WAC_CMD_WL_LED_CONTROL 0x03 | ||
21 | #define WAC_CMD_LED_CONTROL 0x20 | ||
22 | #define WAC_CMD_ICON_START 0x21 | ||
23 | #define WAC_CMD_ICON_XFER 0x23 | ||
24 | #define WAC_CMD_ICON_BT_XFER 0x26 | ||
25 | #define WAC_CMD_RETRIES 10 | 19 | #define WAC_CMD_RETRIES 10 |
26 | #define WAC_CMD_DELETE_PAIRING 0x20 | ||
27 | #define WAC_CMD_UNPAIR_ALL 0xFF | ||
28 | 20 | ||
29 | #define DEV_ATTR_RW_PERM (S_IRUGO | S_IWUSR | S_IWGRP) | 21 | #define DEV_ATTR_RW_PERM (S_IRUGO | S_IWUSR | S_IWGRP) |
30 | #define DEV_ATTR_WO_PERM (S_IWUSR | S_IWGRP) | 22 | #define DEV_ATTR_WO_PERM (S_IWUSR | S_IWGRP) |
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h index fb0e50acb10d..804fda3e192a 100644 --- a/drivers/hid/wacom_wac.h +++ b/drivers/hid/wacom_wac.h | |||
@@ -72,6 +72,15 @@ | |||
72 | #define WACOM_REPORT_REMOTE 17 | 72 | #define WACOM_REPORT_REMOTE 17 |
73 | #define WACOM_REPORT_INTUOSHT2_ID 8 | 73 | #define WACOM_REPORT_INTUOSHT2_ID 8 |
74 | 74 | ||
75 | /* wacom command report ids */ | ||
76 | #define WAC_CMD_WL_LED_CONTROL 0x03 | ||
77 | #define WAC_CMD_LED_CONTROL 0x20 | ||
78 | #define WAC_CMD_ICON_START 0x21 | ||
79 | #define WAC_CMD_ICON_XFER 0x23 | ||
80 | #define WAC_CMD_ICON_BT_XFER 0x26 | ||
81 | #define WAC_CMD_DELETE_PAIRING 0x20 | ||
82 | #define WAC_CMD_UNPAIR_ALL 0xFF | ||
83 | |||
75 | /* device quirks */ | 84 | /* device quirks */ |
76 | #define WACOM_QUIRK_BBTOUCH_LOWRES 0x0001 | 85 | #define WACOM_QUIRK_BBTOUCH_LOWRES 0x0001 |
77 | #define WACOM_QUIRK_SENSE 0x0002 | 86 | #define WACOM_QUIRK_SENSE 0x0002 |