auxdisplay: Replace symbolic permissions with octal permissions
authorJinchao Wang <wjc@cdjrlc.com>
Sat, 26 Jun 2021 10:15:38 +0000 (18:15 +0800)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 16 Jul 2021 05:42:35 +0000 (07:42 +0200)
Resolves the checkpatch warning.

Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
[edited wording]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
drivers/auxdisplay/cfag12864b.c
drivers/auxdisplay/ks0108.c

index fd430e6866a117d4cd30cd48317f7504efbdeac6..6526aa51fb1d7511fb1f5757a32b2f9395dc8efc 100644 (file)
@@ -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)");
 
index da9abfbb6d336cfa0dbf5450e475882e878b7202..e871b94a1911a74b78a332437cb9dc3c3e2ee9d5 100644 (file)
  */
 
 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)");
 
 /*