diff options
author | Stefan Achatz <stefan_achatz@web.de> | 2012-11-11 00:21:06 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-11-12 09:30:27 -0500 |
commit | f1da71e1f658c3f1e5d08291258ac87c35e049a4 (patch) | |
tree | 8c6ef6fd54f1e5ce5e7a17ab14d9dc9bf0f634ec /drivers/hid | |
parent | 6e5920ddbbc114d9f7864b14a8db42e714a8b99f (diff) |
HID: roccat: add sysfs attr "reset" for Isku
Isku needs an extra sysfs attr to support device reset.
Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-roccat-isku.c | 2 | ||||
-rw-r--r-- | drivers/hid/hid-roccat-isku.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hid/hid-roccat-isku.c b/drivers/hid/hid-roccat-isku.c index 020d6cda8975..1219998a02d6 100644 --- a/drivers/hid/hid-roccat-isku.c +++ b/drivers/hid/hid-roccat-isku.c | |||
@@ -218,6 +218,7 @@ ISKU_SYSFS_RW(last_set, LAST_SET) | |||
218 | ISKU_SYSFS_W(talk, TALK) | 218 | ISKU_SYSFS_W(talk, TALK) |
219 | ISKU_SYSFS_R(info, INFO) | 219 | ISKU_SYSFS_R(info, INFO) |
220 | ISKU_SYSFS_W(control, CONTROL) | 220 | ISKU_SYSFS_W(control, CONTROL) |
221 | ISKU_SYSFS_W(reset, RESET) | ||
221 | 222 | ||
222 | static struct bin_attribute isku_bin_attributes[] = { | 223 | static struct bin_attribute isku_bin_attributes[] = { |
223 | ISKU_BIN_ATTR_RW(macro, MACRO), | 224 | ISKU_BIN_ATTR_RW(macro, MACRO), |
@@ -233,6 +234,7 @@ static struct bin_attribute isku_bin_attributes[] = { | |||
233 | ISKU_BIN_ATTR_W(talk, TALK), | 234 | ISKU_BIN_ATTR_W(talk, TALK), |
234 | ISKU_BIN_ATTR_R(info, INFO), | 235 | ISKU_BIN_ATTR_R(info, INFO), |
235 | ISKU_BIN_ATTR_W(control, CONTROL), | 236 | ISKU_BIN_ATTR_W(control, CONTROL), |
237 | ISKU_BIN_ATTR_W(reset, RESET), | ||
236 | __ATTR_NULL | 238 | __ATTR_NULL |
237 | }; | 239 | }; |
238 | 240 | ||
diff --git a/drivers/hid/hid-roccat-isku.h b/drivers/hid/hid-roccat-isku.h index 0062ab50861e..cf6896c83867 100644 --- a/drivers/hid/hid-roccat-isku.h +++ b/drivers/hid/hid-roccat-isku.h | |||
@@ -27,6 +27,7 @@ enum { | |||
27 | ISKU_SIZE_LAST_SET = 0x14, | 27 | ISKU_SIZE_LAST_SET = 0x14, |
28 | ISKU_SIZE_LIGHT = 0x0a, | 28 | ISKU_SIZE_LIGHT = 0x0a, |
29 | ISKU_SIZE_MACRO = 0x823, | 29 | ISKU_SIZE_MACRO = 0x823, |
30 | ISKU_SIZE_RESET = 0x03, | ||
30 | ISKU_SIZE_TALK = 0x10, | 31 | ISKU_SIZE_TALK = 0x10, |
31 | }; | 32 | }; |
32 | 33 | ||
@@ -53,6 +54,7 @@ enum isku_commands { | |||
53 | ISKU_COMMAND_MACRO = 0xe, | 54 | ISKU_COMMAND_MACRO = 0xe, |
54 | ISKU_COMMAND_INFO = 0xf, | 55 | ISKU_COMMAND_INFO = 0xf, |
55 | ISKU_COMMAND_LIGHT = 0x10, | 56 | ISKU_COMMAND_LIGHT = 0x10, |
57 | ISKU_COMMAND_RESET = 0x11, | ||
56 | ISKU_COMMAND_KEYS_CAPSLOCK = 0x13, | 58 | ISKU_COMMAND_KEYS_CAPSLOCK = 0x13, |
57 | ISKU_COMMAND_LAST_SET = 0x14, | 59 | ISKU_COMMAND_LAST_SET = 0x14, |
58 | ISKU_COMMAND_15 = 0x15, | 60 | ISKU_COMMAND_15 = 0x15, |