summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2016-08-02 10:31:43 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-08-02 23:40:41 -0700
commitb27c0d0c3bf3073e8ae19875eb1d3755c5e8c072 (patch)
tree5ec8b703cdf54fda0f95f6b9c2f6084539f65f14 /drivers/input/touchscreen
parent2de4fcc64685def3e586856a2dc636df44532395 (diff)
downloadblackbird-op-linux-b27c0d0c3bf3073e8ae19875eb1d3755c5e8c072.tar.gz
blackbird-op-linux-b27c0d0c3bf3073e8ae19875eb1d3755c5e8c072.zip
Input: ili210x - fix permissions on "calibrate" attribute
"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>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/ili210x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ili210x.c b/drivers/input/touchscreen/ili210x.c
index ddf694b9fffc..fe4848bd1f4c 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,
OpenPOWER on IntegriCloud