From: Huang, Tao Date: Tue, 5 Jul 2016 11:00:15 +0000 (+0800) Subject: Revert "Revert "drivers: switch: remove S_IWUSR from dev_attr"" X-Git-Tag: firefly_0821_release~2229 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=20278af4b843eabb68591ff689eb88d9e3e67abc;p=firefly-linux-kernel-4.4.55.git Revert "Revert "drivers: switch: remove S_IWUSR from dev_attr"" This reverts commit d18fffdddbf0a395440cd8e8e2578d322c8f0dbd. Signed-off-by: Huang, Tao --- diff --git a/drivers/switch/switch_class.c b/drivers/switch/switch_class.c index e05fc2591147..e373b625806e 100644 --- a/drivers/switch/switch_class.c +++ b/drivers/switch/switch_class.c @@ -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) {