diff options
author | Stefan Achatz <stefan_achatz@web.de> | 2012-11-11 00:21:19 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-11-12 09:30:29 -0500 |
commit | 172e2abc19b51feef5b7980055725f0b242e988e (patch) | |
tree | d16cf15bc518cfc6c70271a5aed3d1312c138d04 /drivers/hid/hid-roccat-kovaplus.c | |
parent | bb060d65c3bf1d0211262e8229097d9a1beab20d (diff) |
HID: roccat: deprecate some Kovaplus attributes
Introduced attribute "control" and made profile_settings and profile_buttons
readable, which makes profile[1-5]_settings and profile[1-5]_buttons obsolete.
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.c')
-rw-r--r-- | drivers/hid/hid-roccat-kovaplus.c | 10 |
1 files changed, 6 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 | ||
221 | KOVAPLUS_SYSFS_W(control, CONTROL) | ||
221 | KOVAPLUS_SYSFS_RW(info, INFO) | 222 | KOVAPLUS_SYSFS_RW(info, INFO) |
222 | KOVAPLUS_SYSFS_W(profile_settings, PROFILE_SETTINGS) | 223 | KOVAPLUS_SYSFS_RW(profile_settings, PROFILE_SETTINGS) |
223 | KOVAPLUS_SYSFS_W(profile_buttons, PROFILE_BUTTONS) | 224 | KOVAPLUS_SYSFS_RW(profile_buttons, PROFILE_BUTTONS) |
224 | 225 | ||
225 | static ssize_t kovaplus_sysfs_read_profilex_settings(struct file *fp, | 226 | static 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 | ||
371 | static struct bin_attribute kovaplus_bin_attributes[] = { | 372 | static 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, |