aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-roccat-koneplus.c
diff options
context:
space:
mode:
authorStefan Achatz <stefan_achatz@web.de>2012-11-11 00:21:15 -0500
committerJiri Kosina <jkosina@suse.cz>2012-11-12 09:30:28 -0500
commitbb060d65c3bf1d0211262e8229097d9a1beab20d (patch)
treec268654f29419000df520fc67da9c7589973242a /drivers/hid/hid-roccat-koneplus.c
parentecbfe7aa55a3583238c0126bbc64f9043d390b50 (diff)
HID: roccat: deprecate some Koneplus 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-koneplus.c')
-rw-r--r--drivers/hid/hid-roccat-koneplus.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/hid/hid-roccat-koneplus.c b/drivers/hid/hid-roccat-koneplus.c
index 9fe445082308..6a48fa3c7da9 100644
--- a/drivers/hid/hid-roccat-koneplus.c
+++ b/drivers/hid/hid-roccat-koneplus.c
@@ -177,14 +177,15 @@ KONEPLUS_SYSFS_R(thingy, THINGY)
177 .write = koneplus_sysfs_write_ ## thingy \ 177 .write = koneplus_sysfs_write_ ## thingy \
178} 178}
179 179
180KONEPLUS_SYSFS_W(control, CONTROL)
180KONEPLUS_SYSFS_RW(info, INFO) 181KONEPLUS_SYSFS_RW(info, INFO)
181KONEPLUS_SYSFS_W(talk, TALK) 182KONEPLUS_SYSFS_W(talk, TALK)
182KONEPLUS_SYSFS_W(macro, MACRO) 183KONEPLUS_SYSFS_W(macro, MACRO)
183KONEPLUS_SYSFS_RW(sensor, SENSOR) 184KONEPLUS_SYSFS_RW(sensor, SENSOR)
184KONEPLUS_SYSFS_RW(tcu, TCU) 185KONEPLUS_SYSFS_RW(tcu, TCU)
185KONEPLUS_SYSFS_R(tcu_image, TCU_IMAGE) 186KONEPLUS_SYSFS_R(tcu_image, TCU_IMAGE)
186KONEPLUS_SYSFS_W(profile_settings, PROFILE_SETTINGS) 187KONEPLUS_SYSFS_RW(profile_settings, PROFILE_SETTINGS)
187KONEPLUS_SYSFS_W(profile_buttons, PROFILE_BUTTONS) 188KONEPLUS_SYSFS_RW(profile_buttons, PROFILE_BUTTONS)
188 189
189static ssize_t koneplus_sysfs_read_profilex_settings(struct file *fp, 190static ssize_t koneplus_sysfs_read_profilex_settings(struct file *fp,
190 struct kobject *kobj, struct bin_attribute *attr, char *buf, 191 struct kobject *kobj, struct bin_attribute *attr, char *buf,
@@ -306,14 +307,15 @@ static struct device_attribute koneplus_attributes[] = {
306}; 307};
307 308
308static struct bin_attribute koneplus_bin_attributes[] = { 309static struct bin_attribute koneplus_bin_attributes[] = {
310 KONEPLUS_BIN_ATTRIBUTE_W(control, CONTROL),
309 KONEPLUS_BIN_ATTRIBUTE_RW(info, INFO), 311 KONEPLUS_BIN_ATTRIBUTE_RW(info, INFO),
310 KONEPLUS_BIN_ATTRIBUTE_W(talk, TALK), 312 KONEPLUS_BIN_ATTRIBUTE_W(talk, TALK),
311 KONEPLUS_BIN_ATTRIBUTE_W(macro, MACRO), 313 KONEPLUS_BIN_ATTRIBUTE_W(macro, MACRO),
312 KONEPLUS_BIN_ATTRIBUTE_RW(sensor, SENSOR), 314 KONEPLUS_BIN_ATTRIBUTE_RW(sensor, SENSOR),
313 KONEPLUS_BIN_ATTRIBUTE_RW(tcu, TCU), 315 KONEPLUS_BIN_ATTRIBUTE_RW(tcu, TCU),
314 KONEPLUS_BIN_ATTRIBUTE_R(tcu_image, TCU_IMAGE), 316 KONEPLUS_BIN_ATTRIBUTE_R(tcu_image, TCU_IMAGE),
315 KONEPLUS_BIN_ATTRIBUTE_W(profile_settings, PROFILE_SETTINGS), 317 KONEPLUS_BIN_ATTRIBUTE_RW(profile_settings, PROFILE_SETTINGS),
316 KONEPLUS_BIN_ATTRIBUTE_W(profile_buttons, PROFILE_BUTTONS), 318 KONEPLUS_BIN_ATTRIBUTE_RW(profile_buttons, PROFILE_BUTTONS),
317 { 319 {
318 .attr = { .name = "profile1_settings", .mode = 0440 }, 320 .attr = { .name = "profile1_settings", .mode = 0440 },
319 .size = KONEPLUS_SIZE_PROFILE_SETTINGS, 321 .size = KONEPLUS_SIZE_PROFILE_SETTINGS,