diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2016-08-02 10:31:43 -0700 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2016-09-29 11:14:18 +0200 |
commit | 5680d5b72ddcaf80ba452179c0bdac01f90b2da9 (patch) | |
tree | 87348453d828a109ffaf19e09971cb87cb27cda0 | |
parent | 7d3ca0691f5ab3ec86c95fd96625dbdb990f916e (diff) | |
download | lwn-5680d5b72ddcaf80ba452179c0bdac01f90b2da9.tar.gz lwn-5680d5b72ddcaf80ba452179c0bdac01f90b2da9.zip |
Input: ili210x - fix permissions on "calibrate" attribute
commit b27c0d0c3bf3073e8ae19875eb1d3755c5e8c072 upstream.
"calibrate" attribute does not provide "show" methods and thus we should
not mark it as readable.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r-- | drivers/input/touchscreen/ili210x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c index 1418bdda61bb..ceaa790b71a2 100644 --- 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, |