Skip to contentSkip to conversation

staging:most/hdm-i2c: Replace symbolic permissions with octal permissions

PATCH New Zhengyi Shen 1 participant 1 message Feb 3, 2017

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

PATCH 1/1 staging:most/hdm-i2c: Replace symbolic permissions with octal permissions

WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'.
This warning was detected by checkpatch.pl for hdm_i2c.c.

---
 drivers/staging/most/hdm-i2c/hdm_i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/most/hdm-i2c/hdm_i2c.c +1 -1
index ba0263b..1d5b229 100644
@@ -37,7 +37,7 @@ enum { CH_RX, CH_TX, NUM_CHANNELS };
 
 /* IRQ / Polling option */
 static bool polling_req;
-module_param(polling_req, bool, S_IRUGO);
+module_param(polling_req, bool, 0444);
 MODULE_PARM_DESC(polling_req, "Request Polling. Default = 0 (use irq)");
 
 /* Polling Rate */
Signature · 1 line
2.9.3