Browse Source

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>
Dmitry Torokhov 9 years ago
parent
commit
b27c0d0c3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/input/touchscreen/ili210x.c

+ 1 - 1
drivers/input/touchscreen/ili210x.c

@@ -169,7 +169,7 @@ static ssize_t ili210x_calibrate(struct device *dev,
 
 
 	return count;
 	return count;
 }
 }
-static DEVICE_ATTR(calibrate, 0644, NULL, ili210x_calibrate);
+static DEVICE_ATTR(calibrate, S_IWUSR, NULL, ili210x_calibrate);
 
 
 static struct attribute *ili210x_attributes[] = {
 static struct attribute *ili210x_attributes[] = {
 	&dev_attr_calibrate.attr,
 	&dev_attr_calibrate.attr,