summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-roccat-kovaplus.h
diff options
context:
space:
mode:
authorStefan Achatz <stefan_achatz@web.de>2012-11-11 09:20:52 +0400
committerJiri Kosina <jkosina@suse.cz>2012-11-12 18:30:26 +0400
commit94a8fcf9a1a816199efc29546040172aa1383be0 (patch)
tree1edb31f25daa805e3c62b202fdcc7c528e9dc2b6 /drivers/hid/hid-roccat-kovaplus.h
parentf114fec54c30ba9c6842ac1121d3e16d3d3c6bdd (diff)
downloadlinux-94a8fcf9a1a816199efc29546040172aa1383be0.tar.xz
HID: roccat: cleanup of kovaplus module
Partially removed unneeded informations and data caching. Moved code nearer to format of newer drivers. Added "info" sysfs attribute to support device reset and deprecate other attributes. 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-kovaplus.h')
-rw-r--r--drivers/hid/hid-roccat-kovaplus.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/hid/hid-roccat-kovaplus.h b/drivers/hid/hid-roccat-kovaplus.h
index f82daa1cdcb9..1189573daee2 100644
--- a/drivers/hid/hid-roccat-kovaplus.h
+++ b/drivers/hid/hid-roccat-kovaplus.h
@@ -14,6 +14,12 @@
#include <linux/types.h>
+enum {
+ KOVAPLUS_SIZE_INFO = 0x06,
+ KOVAPLUS_SIZE_PROFILE_SETTINGS = 0x10,
+ KOVAPLUS_SIZE_PROFILE_BUTTONS = 0x17,
+};
+
enum kovaplus_control_requests {
/* write; value = profile number range 0-4 */
KOVAPLUS_CONTROL_REQUEST_PROFILE_SETTINGS = 0x10,
@@ -53,13 +59,6 @@ struct kovaplus_info {
uint8_t unknown[3];
} __packed;
-/* writes 1 on plugin */
-struct kovaplus_a {
- uint8_t command; /* KOVAPLUS_COMMAND_A */
- uint8_t size; /* 3 */
- uint8_t unknown;
-} __packed;
-
enum kovaplus_commands {
KOVAPLUS_COMMAND_ACTUAL_PROFILE = 0x5,
KOVAPLUS_COMMAND_PROFILE_SETTINGS = 0x6,
@@ -125,7 +124,6 @@ struct kovaplus_device {
int roccat_claimed;
int chrdev_minor;
struct mutex kovaplus_lock;
- struct kovaplus_info info;
struct kovaplus_profile_settings profile_settings[5];
struct kovaplus_profile_buttons profile_buttons[5];
};