Skip to contentSkip to conversation

convert ray_cs wireless driver to module_param

PATCH New Stefan Sperling 1 participant 1 message Nov 9, 2004

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

PATCH 1/1 convert ray_cs wireless driver to module_param

Replaces MODULE_PARM with module_param calls in ray_cs wireless driver.

net/wireless/ray_cs.c renamed from net/wireless/ray_cs.c.orig +13 -13
@@ -84,7 +84,7 @@ typedef u_char	mac_addr[ETH_ALEN];	/* Ha
 #ifdef PCMCIA_DEBUG
 static int ray_debug;
 static int pc_debug = PCMCIA_DEBUG;
-MODULE_PARM(pc_debug, "i");
+module_param(pc_debug, bool, 0644);
 /* #define DEBUG(n, args...) if (pc_debug>(n)) printk(KERN_DEBUG args); */
 #define DEBUG(n, args...) if (pc_debug>(n)) printk(args);
 #else
@@ -226,18 +226,18 @@ MODULE_AUTHOR("Corey Thomas <corey@world
 MODULE_DESCRIPTION("Raylink/WebGear wireless LAN driver");
 MODULE_LICENSE("GPL");
 
-MODULE_PARM(irq_mask,"i");
-MODULE_PARM(net_type,"i");
-MODULE_PARM(hop_dwell,"i");
-MODULE_PARM(beacon_period,"i");
-MODULE_PARM(psm,"i");
-MODULE_PARM(essid,"s");
-MODULE_PARM(translate,"i");
-MODULE_PARM(country,"i");
-MODULE_PARM(sniffer,"i");
-MODULE_PARM(bc,"i");
-MODULE_PARM(phy_addr,"s");
-MODULE_PARM(ray_mem_speed, "i");
+module_param(irq_mask, u_long, 0444);
+module_param(net_type,int, 0644);
+module_param(hop_dwell, int, 0644);
+module_param(beacon_period, int, 0644);
+module_param(psm, bool, 0644);
+module_param_string(essid, esiid, 32, 0444);
+module_param(translate, bool, 0644);
+module_param(country, int, 0644);
+module_param(sniffer, bool, 0444);
+module_param(bc, bool, 0444);
+module_param_string(phy_addr, phy_addr, ADDRLEN, 0444);
+module_param(ray_mem_speed, int, 0444);
 
 static UCHAR b5_default_startup_parms[] = {
     0,   0,                         /* Adhoc station */

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