From: Stefan Achatz Date: Mon, 14 Mar 2011 20:43:07 +0000 (+0100) Subject: HID: roccat-koneplus: vorrect mode of sysfs attr 'sensor' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61c29f5b1856f90bf0a87d83cfa035a11986d2c5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git HID: roccat-koneplus: vorrect mode of sysfs attr 'sensor' Mode of sysfs attribute 'sensor' was wrongly set to writeonly. Corrected this to readwrite. Signed-off-by: Stefan Achatz Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-roccat-koneplus.c b/drivers/hid/hid-roccat-koneplus.c index a8e2117756ac..33eec74e0615 100644 --- a/drivers/hid/hid-roccat-koneplus.c +++ b/drivers/hid/hid-roccat-koneplus.c @@ -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