OSDN Git Service

power: supply: sbs-battery: use octal permissions on module param
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Fri, 1 Nov 2019 19:06:59 +0000 (15:06 -0400)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 19 Dec 2019 01:05:51 +0000 (02:05 +0100)
Symbolic permissions 'S_IRUSR | S_IRGRP | S_IROTH' are not
preferred. Use octal permissions '0444'.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-battery.c

index f8d74e9..6c1ddea 100644 (file)
@@ -1001,6 +1001,6 @@ module_i2c_driver(sbs_battery_driver);
 MODULE_DESCRIPTION("SBS battery monitor driver");
 MODULE_LICENSE("GPL");
 
-module_param(force_load, bool, S_IRUSR | S_IRGRP | S_IROTH);
+module_param(force_load, bool, 0444);
 MODULE_PARM_DESC(force_load,
                 "Attempt to load the driver even if no battery is connected");