aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-roccat-savu.h
diff options
context:
space:
mode:
authorStefan Achatz <erazor_de@users.sourceforge.net>2012-05-20 16:44:59 -0400
committerJiri Kosina <jkosina@suse.cz>2012-06-28 04:34:01 -0400
commit4728f2dc9f8e32ce898223fb863316ed7fa2d224 (patch)
treec8f2df1b448db340d556bf1be42b35cb96d4f0ab /drivers/hid/hid-roccat-savu.h
parent6a2a6390cf098b899a30146ef5c1fb85c9fefb3c (diff)
HID: roccat: move functionality to roccat-common
Reduced code duplication by moving functions from individual drivers to roccat-common module. Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-roccat-savu.h')
-rw-r--r--drivers/hid/hid-roccat-savu.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/hid/hid-roccat-savu.h b/drivers/hid/hid-roccat-savu.h
index 97b43d5b0477..b15a1bbb66fb 100644
--- a/drivers/hid/hid-roccat-savu.h
+++ b/drivers/hid/hid-roccat-savu.h
@@ -23,29 +23,11 @@ enum {
23 SAVU_SIZE_INFO = 0x08, 23 SAVU_SIZE_INFO = 0x08,
24}; 24};
25 25
26struct savu_control {
27 uint8_t command; /* SAVU_COMMAND_CONTROL */
28 /*
29 * value is profile number in range 0-4 for requesting settings and buttons
30 * 1 if status ok for requesting status
31 */
32 uint8_t value;
33 uint8_t request;
34} __packed;
35
36enum savu_control_requests { 26enum savu_control_requests {
37 SAVU_CONTROL_REQUEST_WRITE_CHECK = 0x00,
38 SAVU_CONTROL_REQUEST_GENERAL = 0x80, 27 SAVU_CONTROL_REQUEST_GENERAL = 0x80,
39 SAVU_CONTROL_REQUEST_BUTTONS = 0x90, 28 SAVU_CONTROL_REQUEST_BUTTONS = 0x90,
40}; 29};
41 30
42enum savu_control_values {
43 SAVU_CONTROL_REQUEST_WRITE_CHECK_OVERLOAD = 0,
44 SAVU_CONTROL_REQUEST_WRITE_CHECK_OK = 1,
45 SAVU_CONTROL_REQUEST_WRITE_CHECK_INVALID = 2,
46 SAVU_CONTROL_REQUEST_WRITE_CHECK_WAIT = 3,
47};
48
49enum savu_commands { 31enum savu_commands {
50 SAVU_COMMAND_CONTROL = 0x4, 32 SAVU_COMMAND_CONTROL = 0x4,
51 SAVU_COMMAND_PROFILE = 0x5, 33 SAVU_COMMAND_PROFILE = 0x5,