Revert "Revert "drivers: switch: remove S_IWUSR from dev_attr""
[firefly-linux-kernel-4.4.55.git] / drivers / switch / switch_class.c
index e05fc25911474b244b57e3c20907e6d15f53f950..e373b625806ef249f04a6839350d943750b50166 100644 (file)
@@ -54,8 +54,8 @@ static ssize_t name_show(struct device *dev, struct device_attribute *attr,
        return sprintf(buf, "%s\n", sdev->name);
 }
 
-static DEVICE_ATTR(state, S_IRUGO | S_IWUSR, state_show, NULL);
-static DEVICE_ATTR(name, S_IRUGO | S_IWUSR, name_show, NULL);
+static DEVICE_ATTR(state, S_IRUGO, state_show, NULL);
+static DEVICE_ATTR(name, S_IRUGO, name_show, NULL);
 
 void switch_set_state(struct switch_dev *sdev, int state)
 {