소스 검색

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.

Signed-off-by: Zhengyi Shen <shenzhengyi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Zhengyi Shen 8 년 전
부모
커밋
e495fac839
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/staging/most/hdm-i2c/hdm_i2c.c

+ 1 - 1
drivers/staging/most/hdm-i2c/hdm_i2c.c

@@ -37,7 +37,7 @@ enum { CH_RX, CH_TX, NUM_CHANNELS };
 
 
 /* IRQ / Polling option */
 /* IRQ / Polling option */
 static bool polling_req;
 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)");
 MODULE_PARM_DESC(polling_req, "Request Polling. Default = 0 (use irq)");
 
 
 /* Polling Rate */
 /* Polling Rate */