projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2de4fcc
)
Input: ili210x - fix permissions on "calibrate" attribute
author
Dmitry Torokhov
<
[email protected]
>
Tue, 2 Aug 2016 17:31:43 +0000
(10:31 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Wed, 3 Aug 2016 06:40:41 +0000
(23:40 -0700)
"calibrate" attribute does not provide "show" methods and thus we should
not mark it as readable.
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/ili210x.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/ili210x.c
b/drivers/input/touchscreen/ili210x.c
index ddf694b9fffc42380889450005caaa538d2cf423..fe4848bd1f4c3ecc564a9eaa479f029f4e590c45 100644
(file)
--- a/
drivers/input/touchscreen/ili210x.c
+++ b/
drivers/input/touchscreen/ili210x.c
@@
-169,7
+169,7
@@
static ssize_t ili210x_calibrate(struct device *dev,
return count;
}
-static DEVICE_ATTR(calibrate,
0644
, NULL, ili210x_calibrate);
+static DEVICE_ATTR(calibrate,
S_IWUSR
, NULL, ili210x_calibrate);
static struct attribute *ili210x_attributes[] = {
&dev_attr_calibrate.attr,