HID: roccat-koneplus: vorrect mode of sysfs attr 'sensor'
authorStefan Achatz <erazor_de@users.sourceforge.net>
Mon, 14 Mar 2011 20:43:07 +0000 (21:43 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 15 Mar 2011 14:41:20 +0000 (15:41 +0100)
Mode of sysfs attribute 'sensor' was wrongly set to writeonly.
Corrected this to readwrite.

Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-roccat-koneplus.c

index a8e2117756acea1475fddc1d9b3324960106aa11..33eec74e06158be135d254e2d66d849267f27900 100644 (file)
@@ -460,7 +460,7 @@ static struct device_attribute koneplus_attributes[] = {
 
 static struct bin_attribute koneplus_bin_attributes[] = {
        {
-               .attr = { .name = "sensor", .mode = 0220 },
+               .attr = { .name = "sensor", .mode = 0660 },
                .size = sizeof(struct koneplus_sensor),
                .read = koneplus_sysfs_read_sensor,
                .write = koneplus_sysfs_write_sensor