Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1573136 > unrolled thread
| Started by | Zhengyi Shen <shenzhengyi@gmail.com> |
|---|---|
| First post | 2017-02-03 16:00 +0100 |
| Last post | 2017-02-03 16:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] staging:most/hdm-i2c: Replace symbolic permissions with octal permissions Zhengyi Shen <shenzhengyi@gmail.com> - 2017-02-03 16:00 +0100
| From | Zhengyi Shen <shenzhengyi@gmail.com> |
|---|---|
| Date | 2017-02-03 16:00 +0100 |
| Subject | [PATCH] staging:most/hdm-i2c: Replace symbolic permissions with octal permissions |
| Message-ID | <t6Nvc-2PE-23@gated-at.bofh.it> |
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>
---
drivers/staging/most/hdm-i2c/hdm_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/most/hdm-i2c/hdm_i2c.c b/drivers/staging/most/hdm-i2c/hdm_i2c.c
index ba0263b..1d5b229 100644
--- a/drivers/staging/most/hdm-i2c/hdm_i2c.c
+++ b/drivers/staging/most/hdm-i2c/hdm_i2c.c
@@ -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 */
--
2.9.3
Back to top | Article view | linux.kernel
csiph-web