All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] convert wavelan_cs wireless driver to module_param
@ 2004-11-09 21:40 Stefan Sperling
  0 siblings, 0 replies; only message in thread
From: Stefan Sperling @ 2004-11-09 21:40 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]


Replaces MODULE_PARM with module_param calls in wavelan_cs wireless driver.

--- drivers/net/wireless/wavelan.p.h.orig	2004-11-09 20:40:22.130902904 +0100
+++ drivers/net/wireless/wavelan.p.h	2004-11-08 23:13:21.000000000 +0100
@@ -704,12 +704,12 @@ static unsigned short	iobase[]	=
 static int	io[4];
 static int	irq[4];
 static char	name[4][IFNAMSIZ];
-MODULE_PARM(io, "1-4i");
-MODULE_PARM(irq, "1-4i");
-MODULE_PARM(name, "1-4c" __MODULE_STRING(IFNAMSIZ));
+module_param_array(io, int, NULL, 0444);
+module_param_array(irq, int, NULL, 0444);
+module_param_array(name, charp, NULL, 0444);
 MODULE_PARM_DESC(io, "WaveLAN I/O base address(es),required");
 MODULE_PARM_DESC(irq, "WaveLAN IRQ number(s)");
-MODULE_PARM_DESC(name, "WaveLAN interface neme(s)");
+MODULE_PARM_DESC(name, "WaveLAN interface name(s)");
 #endif	/* MODULE */
 
 #endif	/* WAVELAN_P_H */
--- drivers/net/wireless/wavelan_cs.p.h.orig	2004-11-09 20:40:22.123903968 +0100
+++ drivers/net/wireless/wavelan_cs.p.h	2004-11-08 23:11:02.000000000 +0100
@@ -803,14 +803,14 @@ static int 	irq_list[4] = { -1 };
 static int	mem_speed = 0;
 
 /* New module interface */
-MODULE_PARM(irq_mask, "i");
-MODULE_PARM(irq_list, "1-4i");
-MODULE_PARM(mem_speed, "i");
+module_param(irq_mask, int, 0444);
+module_param_array(irq_list, int, NULL, 0444);
+module_param(mem_speed, int, 0444);
 
 #ifdef WAVELAN_ROAMING		/* Conditional compile, see above in options */
 /* Enable roaming mode ? No ! Please keep this to 0 */
 static int	do_roaming = 0;
-MODULE_PARM(do_roaming, "i");
+module_param(do_roaming, bool, 0444);
 #endif	/* WAVELAN_ROAMING */
 
 MODULE_LICENSE("GPL");

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-09 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 21:40 [KJ] [PATCH] convert wavelan_cs wireless driver to module_param Stefan Sperling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.