aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-roccat-kovaplus.c10
-rw-r--r--drivers/hid/hid-roccat-kovaplus.h2
2 files changed, 8 insertions, 4 deletions
diff --git a/drivers/hid/hid-roccat-kovaplus.c b/drivers/hid/hid-roccat-kovaplus.c
index 1589fd3bcf0f..b8b37789b864 100644
--- a/drivers/hid/hid-roccat-kovaplus.c
+++ b/drivers/hid/hid-roccat-kovaplus.c
@@ -218,9 +218,10 @@ KOVAPLUS_SYSFS_R(thingy, THINGY)
218 .write = kovaplus_sysfs_write_ ## thingy \ 218 .write = kovaplus_sysfs_write_ ## thingy \
219} 219}
220 220
221KOVAPLUS_SYSFS_W(control, CONTROL)
221KOVAPLUS_SYSFS_RW(info, INFO) 222KOVAPLUS_SYSFS_RW(info, INFO)
222KOVAPLUS_SYSFS_W(profile_settings, PROFILE_SETTINGS) 223KOVAPLUS_SYSFS_RW(profile_settings, PROFILE_SETTINGS)
223KOVAPLUS_SYSFS_W(profile_buttons, PROFILE_BUTTONS) 224KOVAPLUS_SYSFS_RW(profile_buttons, PROFILE_BUTTONS)
224 225
225static ssize_t kovaplus_sysfs_read_profilex_settings(struct file *fp, 226static ssize_t kovaplus_sysfs_read_profilex_settings(struct file *fp,
226 struct kobject *kobj, struct bin_attribute *attr, char *buf, 227 struct kobject *kobj, struct bin_attribute *attr, char *buf,
@@ -369,9 +370,10 @@ static struct device_attribute kovaplus_attributes[] = {
369}; 370};
370 371
371static struct bin_attribute kovaplus_bin_attributes[] = { 372static struct bin_attribute kovaplus_bin_attributes[] = {
373 KOVAPLUS_BIN_ATTRIBUTE_W(control, CONTROL),
372 KOVAPLUS_BIN_ATTRIBUTE_RW(info, INFO), 374 KOVAPLUS_BIN_ATTRIBUTE_RW(info, INFO),
373 KOVAPLUS_BIN_ATTRIBUTE_W(profile_settings, PROFILE_SETTINGS), 375 KOVAPLUS_BIN_ATTRIBUTE_RW(profile_settings, PROFILE_SETTINGS),
374 KOVAPLUS_BIN_ATTRIBUTE_W(profile_buttons, PROFILE_BUTTONS), 376 KOVAPLUS_BIN_ATTRIBUTE_RW(profile_buttons, PROFILE_BUTTONS),
375 { 377 {
376 .attr = { .name = "profile1_settings", .mode = 0440 }, 378 .attr = { .name = "profile1_settings", .mode = 0440 },
377 .size = KOVAPLUS_SIZE_PROFILE_SETTINGS, 379 .size = KOVAPLUS_SIZE_PROFILE_SETTINGS,
diff --git a/drivers/hid/hid-roccat-kovaplus.h b/drivers/hid/hid-roccat-kovaplus.h
index 1189573daee2..fbb7a16a7e54 100644
--- a/drivers/hid/hid-roccat-kovaplus.h
+++ b/drivers/hid/hid-roccat-kovaplus.h
@@ -15,6 +15,7 @@
15#include <linux/types.h> 15#include <linux/types.h>
16 16
17enum { 17enum {
18 KOVAPLUS_SIZE_CONTROL = 0x03,
18 KOVAPLUS_SIZE_INFO = 0x06, 19 KOVAPLUS_SIZE_INFO = 0x06,
19 KOVAPLUS_SIZE_PROFILE_SETTINGS = 0x10, 20 KOVAPLUS_SIZE_PROFILE_SETTINGS = 0x10,
20 KOVAPLUS_SIZE_PROFILE_BUTTONS = 0x17, 21 KOVAPLUS_SIZE_PROFILE_BUTTONS = 0x17,
@@ -61,6 +62,7 @@ struct kovaplus_info {
61 62
62enum kovaplus_commands { 63enum kovaplus_commands {
63 KOVAPLUS_COMMAND_ACTUAL_PROFILE = 0x5, 64 KOVAPLUS_COMMAND_ACTUAL_PROFILE = 0x5,
65 KOVAPLUS_COMMAND_CONTROL = 0x4,
64 KOVAPLUS_COMMAND_PROFILE_SETTINGS = 0x6, 66 KOVAPLUS_COMMAND_PROFILE_SETTINGS = 0x6,
65 KOVAPLUS_COMMAND_PROFILE_BUTTONS = 0x7, 67 KOVAPLUS_COMMAND_PROFILE_BUTTONS = 0x7,
66 KOVAPLUS_COMMAND_INFO = 0x9, 68 KOVAPLUS_COMMAND_INFO = 0x9,