I find that the developers often just specified the numeric value
when calling a macro which is defined with a parameter for access permission.
As we know, these numeric value for access permission have had the 
corresponding macro,
and that using macro can improve the robustness and readability of the code,
thus, I suggest replacing the numeric parameter with the macro.

Signed-off-by: Chuansheng Liu <chuansheng....@intel.com>
Signed-off-by: Baole Ni <baolex...@intel.com>
---
 drivers/media/usb/as102/as102_drv.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/media/usb/as102/as102_drv.c 
b/drivers/media/usb/as102/as102_drv.c
index 9dd7c7c..995c541 100644
--- a/drivers/media/usb/as102/as102_drv.c
+++ b/drivers/media/usb/as102/as102_drv.c
@@ -30,23 +30,23 @@
 #include "dvbdev.h"
 
 int dual_tuner;
-module_param_named(dual_tuner, dual_tuner, int, 0644);
+module_param_named(dual_tuner, dual_tuner, int, S_IRUSR | S_IWUSR | S_IRGRP | 
S_IROTH);
 MODULE_PARM_DESC(dual_tuner, "Activate Dual-Tuner config (default: off)");
 
 static int fw_upload = 1;
-module_param_named(fw_upload, fw_upload, int, 0644);
+module_param_named(fw_upload, fw_upload, int, S_IRUSR | S_IWUSR | S_IRGRP | 
S_IROTH);
 MODULE_PARM_DESC(fw_upload, "Turn on/off default FW upload (default: on)");
 
 static int pid_filtering;
-module_param_named(pid_filtering, pid_filtering, int, 0644);
+module_param_named(pid_filtering, pid_filtering, int, S_IRUSR | S_IWUSR | 
S_IRGRP | S_IROTH);
 MODULE_PARM_DESC(pid_filtering, "Activate HW PID filtering (default: off)");
 
 static int ts_auto_disable;
-module_param_named(ts_auto_disable, ts_auto_disable, int, 0644);
+module_param_named(ts_auto_disable, ts_auto_disable, int, S_IRUSR | S_IWUSR | 
S_IRGRP | S_IROTH);
 MODULE_PARM_DESC(ts_auto_disable, "Stream Auto Enable on FW (default: off)");
 
 int elna_enable = 1;
-module_param_named(elna_enable, elna_enable, int, 0644);
+module_param_named(elna_enable, elna_enable, int, S_IRUSR | S_IWUSR | S_IRGRP 
| S_IROTH);
 MODULE_PARM_DESC(elna_enable, "Activate eLNA (default: on)");
 
 DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
-- 
2.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to