projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56fc8bb
)
Revert "drivers: switch: remove S_IWUSR from dev_attr"
author
Dmitry Shmidt
<dimitrysh@google.com>
Tue, 19 Apr 2016 19:37:31 +0000
(12:37 -0700)
committer
Amit Pundir
<amit.pundir@linaro.org>
Thu, 19 May 2016 07:02:41 +0000
(12:32 +0530)
This reverts commit
dc66dee02dcd6ea774e3ed4ae32e88b0f3b4bee7
.
drivers/switch/switch_class.c
patch
|
blob
|
history
diff --git
a/drivers/switch/switch_class.c
b/drivers/switch/switch_class.c
index e373b625806ef249f04a6839350d943750b50166..e05fc25911474b244b57e3c20907e6d15f53f950 100644
(file)
--- 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, state_show, NULL);
-static DEVICE_ATTR(name, S_IRUGO, name_show, NULL);
+static DEVICE_ATTR(state, S_IRUGO
| S_IWUSR
, state_show, NULL);
+static DEVICE_ATTR(name, S_IRUGO
| S_IWUSR
, name_show, NULL);
void switch_set_state(struct switch_dev *sdev, int state)
{