[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180723131954.30739-1-harshitjain6751@gmail.com>
Date: Mon, 23 Jul 2018 18:49:17 +0530
From: dev-harsh1998 <harshitjain6751@...il.com>
To: trivial@...nel.org
Cc: Harshit Jain <harshitjain6751@...il.com>,
Michael Hennerich <michael.hennerich@...log.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Simon Budig <simon.budig@...nelconcepts.de>,
Andi Shyti <andi@...zian.org>,
Luca Ceresoli <luca@...aceresoli.net>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 02/11] touchscreen: ad7877: Use octal permissions
WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.
+static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL);
Signed-off-by: Harshit Jain <harshitjain6751@...il.com>
---
drivers/input/touchscreen/ad7877.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/ad7877.c b/drivers/input/touchscreen/ad7877.c
index 5cfe477ec992..4b4a9d84195e 100644
--- a/drivers/input/touchscreen/ad7877.c
+++ b/drivers/input/touchscreen/ad7877.c
@@ -461,7 +461,7 @@ name ## _show(struct device *dev, struct device_attribute *attr, char *buf) \
return v; \
return sprintf(buf, "%u\n", (unsigned) v); \
} \
-static DEVICE_ATTR(name, S_IRUGO, name ## _show, NULL);
+static DEVICE_ATTR(name, 0444, name ## _show, NULL);
SHOW(aux1)
SHOW(aux2)
--
2.17.1
Powered by blists - more mailing lists