Skip to content

Commit b27c0d0

Browse files
committed
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>
1 parent 2de4fcc commit b27c0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/touchscreen/ili210x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ static ssize_t ili210x_calibrate(struct device *dev,
169169

170170
return count;
171171
}
172-
static DEVICE_ATTR(calibrate, 0644, NULL, ili210x_calibrate);
172+
static DEVICE_ATTR(calibrate, S_IWUSR, NULL, ili210x_calibrate);
173173

174174
static struct attribute *ili210x_attributes[] = {
175175
&dev_attr_calibrate.attr,

0 commit comments

Comments
 (0)