Replace numeric parameter like 0444 with macro
PATCH 458/1285 Replace numeric parameter like 0444 with macro
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 <[email protected]>
Signed-off-by Baole Ni <[email protected]>
--- drivers/media/pci/cx23885/cx23885-417.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/media/pci/cx23885/cx23885-417.c +4 -4
@@ -39,18 +39,18 @@#define CX23885_FIRM_IMAGE_NAME "v4l-cx23885-enc.fw"static unsigned int mpegbufs =32 ; -module_param (mpegbufs, int,0644 ); +module_param (mpegbufs, int,S_IRUSR |S_IWUSR |S_IRGRP |S_IROTH );MODULE_PARM_DESC (mpegbufs,"number of mpeg buffers, range 2-32" );static unsigned int mpeglines =32 ; -module_param (mpeglines, int,0644 ); +module_param (mpeglines, int,S_IRUSR |S_IWUSR |S_IRGRP |S_IROTH );MODULE_PARM_DESC (mpeglines,"number of lines in an MPEG buffer, range 2-32" );static unsigned int mpeglinesize =512 ; -module_param (mpeglinesize, int,0644 ); +module_param (mpeglinesize, int,S_IRUSR |S_IWUSR |S_IRGRP |S_IROTH );MODULE_PARM_DESC (mpeglinesize,"number of bytes in each line of an MPEG buffer, range 512-1024" );static unsigned int v4l_debug; -module_param (v4l_debug, int,0644 ); +module_param (v4l_debug, int,S_IRUSR |S_IWUSR |S_IRGRP |S_IROTH );MODULE_PARM_DESC (v4l_debug,"enable V4L debug messages" ); #define dprintk(level, fmt, arg...)\
Signature · 1 line
2.9.2