Skip to contentSkip to conversation

convert wl3501_cs wireless driver to module_param

PATCH New Stefan Sperling 1 participant 2 messages Nov 9, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 convert wl3501_cs wireless driver to module_param

Replaces MODULE_PARM with module_param calls in wl3501_cs wireless driver.

net/wireless/wl3501_cs.c renamed from net/wireless/wl3501_cs.c.orig +3 -3
@@ -79,7 +79,7 @@
 #define PCMCIA_DEBUG 0
 #ifdef PCMCIA_DEBUG
 static int pc_debug = PCMCIA_DEBUG;
-MODULE_PARM(pc_debug, "i");
+module_param(pc_debug, bool, 0644);
 #define dprintk(n, format, args...) \
 	{ if (pc_debug > (n)) \
 		printk(KERN_INFO "%s: " format "\n", __FUNCTION__ , ##args); }
@@ -2279,8 +2279,8 @@ static void __exit wl3501_exit_module(vo
 module_init(wl3501_init_module);
 module_exit(wl3501_exit_module);
 
-MODULE_PARM(wl3501_irq_mask, "i");
-MODULE_PARM(wl3501_irq_list, "1-4i");
+module_param(wl3501_irq_mask, long, 0444);
+module_param_array(wl3501_irq_list, int, NULL, 0444);
 MODULE_AUTHOR("Fox Chen <[email protected]>, "
 	      "Arnaldo Carvalho de Melo <[email protected]>,"
 	      "Gustavo Niemeyer <[email protected]>");

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw

PATCH 1/1 convert wl3501_cs wireless driver to module_param

Replaces MODULE_PARM with module_param calls in wl3501 wireless driver.

net/wireless/wl3501_cs.c renamed from net/wireless/wl3501_cs.c.orig +3 -3
@@ -79,7 +79,7 @@
 #define PCMCIA_DEBUG 0
 #ifdef PCMCIA_DEBUG
 static int pc_debug = PCMCIA_DEBUG;
-MODULE_PARM(pc_debug, "i");
+module_param(pc_debug, int, 0644);
 #define dprintk(n, format, args...) \
 	{ if (pc_debug > (n)) \
 		printk(KERN_INFO "%s: " format "\n", __FUNCTION__ , ##args); }
@@ -2279,8 +2279,8 @@ static void __exit wl3501_exit_module(vo
 module_init(wl3501_init_module);
 module_exit(wl3501_exit_module);
 
-MODULE_PARM(wl3501_irq_mask, "i");
-MODULE_PARM(wl3501_irq_list, "1-4i");
+module_param(wl3501_irq_mask, long, 0);
+module_param_array(wl3501_irq_list, int, NULL, 0);
 MODULE_AUTHOR("Fox Chen <[email protected]>, "
 	      "Arnaldo Carvalho de Melo <[email protected]>,"
 	      "Gustavo Niemeyer <[email protected]>");

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors