drivers/net: Use octal not symbolic permissions
Prefer the direct use of octal for permissions. Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace and some typing. Miscellanea: o Whitespace neatening around these conversions. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d6444062f8
commit
d61e403856
@@ -67,12 +67,12 @@ MODULE_DESCRIPTION(KBUILD_MODNAME "CAN netdevice driver");
|
||||
* otherwise 11 bit SFF messages.
|
||||
*/
|
||||
static int msgobj15_eff;
|
||||
module_param(msgobj15_eff, int, S_IRUGO);
|
||||
module_param(msgobj15_eff, int, 0444);
|
||||
MODULE_PARM_DESC(msgobj15_eff, "Extended 29-bit frames for message object 15 "
|
||||
"(default: 11-bit standard frames)");
|
||||
|
||||
static int i82527_compat;
|
||||
module_param(i82527_compat, int, S_IRUGO);
|
||||
module_param(i82527_compat, int, 0444);
|
||||
MODULE_PARM_DESC(i82527_compat, "Strict Intel 82527 comptibility mode "
|
||||
"without using additional functions");
|
||||
|
||||
|
@@ -82,29 +82,29 @@ static u8 cor[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
|
||||
static u8 bcr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff};
|
||||
static int indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1};
|
||||
|
||||
module_param_hw_array(port, ulong, ioport, NULL, S_IRUGO);
|
||||
module_param_hw_array(port, ulong, ioport, NULL, 0444);
|
||||
MODULE_PARM_DESC(port, "I/O port number");
|
||||
|
||||
module_param_hw_array(mem, ulong, iomem, NULL, S_IRUGO);
|
||||
module_param_hw_array(mem, ulong, iomem, NULL, 0444);
|
||||
MODULE_PARM_DESC(mem, "I/O memory address");
|
||||
|
||||
module_param_hw_array(indirect, int, ioport, NULL, S_IRUGO);
|
||||
module_param_hw_array(indirect, int, ioport, NULL, 0444);
|
||||
MODULE_PARM_DESC(indirect, "Indirect access via address and data port");
|
||||
|
||||
module_param_hw_array(irq, int, irq, NULL, S_IRUGO);
|
||||
module_param_hw_array(irq, int, irq, NULL, 0444);
|
||||
MODULE_PARM_DESC(irq, "IRQ number");
|
||||
|
||||
module_param_array(clk, int, NULL, S_IRUGO);
|
||||
module_param_array(clk, int, NULL, 0444);
|
||||
MODULE_PARM_DESC(clk, "External oscillator clock frequency "
|
||||
"(default=16000000 [16 MHz])");
|
||||
|
||||
module_param_array(cir, byte, NULL, S_IRUGO);
|
||||
module_param_array(cir, byte, NULL, 0444);
|
||||
MODULE_PARM_DESC(cir, "CPU interface register (default=0x40 [DSC])");
|
||||
|
||||
module_param_array(cor, byte, NULL, S_IRUGO);
|
||||
module_param_array(cor, byte, NULL, 0444);
|
||||
MODULE_PARM_DESC(cor, "Clockout register (default=0x00)");
|
||||
|
||||
module_param_array(bcr, byte, NULL, S_IRUGO);
|
||||
module_param_array(bcr, byte, NULL, 0444);
|
||||
MODULE_PARM_DESC(bcr, "Bus configuration register (default=0x40 [CBY])");
|
||||
|
||||
#define CC770_IOSIZE 0x20
|
||||
|
Reference in New Issue
Block a user