]> Pileus Git - ~andy/linux/blobdiff - drivers/hid/hid-roccat-pyra.c
Merge tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / drivers / hid / hid-roccat-pyra.c
index 76199fa727ed188538ca61ba9eee36e1a042d880..d4f1e3bee5909eed76861acff408b582985462af 100644 (file)
@@ -177,9 +177,10 @@ PYRA_SYSFS_R(thingy, THINGY)
        .write = pyra_sysfs_write_ ## thingy \
 }
 
+PYRA_SYSFS_W(control, CONTROL)
 PYRA_SYSFS_RW(info, INFO)
-PYRA_SYSFS_W(profile_settings, PROFILE_SETTINGS)
-PYRA_SYSFS_W(profile_buttons, PROFILE_BUTTONS)
+PYRA_SYSFS_RW(profile_settings, PROFILE_SETTINGS)
+PYRA_SYSFS_RW(profile_buttons, PROFILE_BUTTONS)
 PYRA_SYSFS_R(settings, SETTINGS)
 
 static ssize_t pyra_sysfs_read_profilex_settings(struct file *fp,
@@ -312,9 +313,10 @@ static struct device_attribute pyra_attributes[] = {
 };
 
 static struct bin_attribute pyra_bin_attributes[] = {
+       PYRA_BIN_ATTRIBUTE_W(control, CONTROL),
        PYRA_BIN_ATTRIBUTE_RW(info, INFO),
-       PYRA_BIN_ATTRIBUTE_W(profile_settings, PROFILE_SETTINGS),
-       PYRA_BIN_ATTRIBUTE_W(profile_buttons, PROFILE_BUTTONS),
+       PYRA_BIN_ATTRIBUTE_RW(profile_settings, PROFILE_SETTINGS),
+       PYRA_BIN_ATTRIBUTE_RW(profile_buttons, PROFILE_BUTTONS),
        PYRA_BIN_ATTRIBUTE_RW(settings, SETTINGS),
        {
                .attr = { .name = "profile1_settings", .mode = 0440 },