Skip to contentSkip to conversation

auxdisplay: Replace symbolic permissions with octal permissions

PATCH In review Jinchao Wang 2 participants 2 messages Jun 26, 2021 – Jul 15, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 auxdisplay: Replace symbolic permissions with octal permissions

Resolve following checkpatch issue,
Replace symbolic permissions with octal permissions

---
 drivers/auxdisplay/cfag12864b.c | 2 +-
 drivers/auxdisplay/ks0108.c     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/auxdisplay/cfag12864b.c +1 -1
index fd430e6866a1..6526aa51fb1d 100644
@@ -33,7 +33,7 @@
  */
 
 static unsigned int cfag12864b_rate = CONFIG_CFAG12864B_RATE;
-module_param(cfag12864b_rate, uint, S_IRUGO);
+module_param(cfag12864b_rate, uint, 0444);
 MODULE_PARM_DESC(cfag12864b_rate,
 	"Refresh rate (hertz)");
 
drivers/auxdisplay/ks0108.c +2 -2
index 03c95ad4216c..313c5305416a 100644
@@ -28,11 +28,11 @@
  */
 
 static unsigned int ks0108_port = CONFIG_KS0108_PORT;
-module_param(ks0108_port, uint, S_IRUGO);
+module_param(ks0108_port, uint, 0444);
 MODULE_PARM_DESC(ks0108_port, "Parallel port where the LCD is connected");
 
 static unsigned int ks0108_delay = CONFIG_KS0108_DELAY;
-module_param(ks0108_delay, uint, S_IRUGO);
+module_param(ks0108_delay, uint, 0444);
 MODULE_PARM_DESC(ks0108_delay, "Delay between each control writing (microseconds)");
 
 /*
Signature · 1 line
2.31.1