Skip to contentSkip to conversation

HID: roccat: Corrected mode of sysfs attr 'sensor' from koneplus driver

PATCH Applied Stefan Achatz 2 participants 2 messages Mar 14, 2011 – Mar 15, 2011

Subsystems (2)
lore
Share & tools
lore

Stefan Achatz

author maintainer
#0 lore raw

PATCH 1/1 HID: roccat: Corrected mode of sysfs attr 'sensor' from koneplus driver

Mode of sysfs attribute 'sensor' was wrongly set to writeonly. Corrected this to readwrite.

---
 drivers/hid/hid-roccat-koneplus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hid/hid-roccat-koneplus.c +1 -1
index a8e2117..33eec74 100644
@@ -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
Signature · 1 line
1.7.3.4
Applied
#1 lore raw
Quoted 13 lines · Stefan Achatz

Mode of sysfs attribute 'sensor' was wrongly set to writeonly. Corrected this to readwrite.

---
 drivers/hid/hid-roccat-koneplus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hid/hid-roccat-koneplus.c +0 -0
index a8e2117..33eec74 100644

drivers/hid/hid-roccat-koneplus.c static struct device_attribute koneplus_attributes[] = { · line 466

Quoted 8 lines
drivers/hid/hid-roccat-koneplus.c +1 -1
@@ -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

Applied.

Signature · 2 lines
Jiri Kosina
SUSE Labs, Novell Inc.