[Linux-parport] [PATCH] parport module_param conversion

Jan Dittmer jdittmer at ppp0.net
Sat Nov 13 18:26:59 EST 2004


module_param conversion for newly introduced MODULE_PARM
in parport_pc.
Also convert some consts which aren't const

Signed-off-by: Jan Dittmer <jdittmer at ppp0.net>

diff -Nru a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
--- a/drivers/parport/parport_pc.c	2004-11-14 00:21:38 +01:00
+++ b/drivers/parport/parport_pc.c	2004-11-14 00:21:38 +01:00
@@ -3172,9 +3172,9 @@
 }

 #ifdef MODULE
-static const char *irq[PARPORT_PC_MAX_PORTS];
-static const char *dma[PARPORT_PC_MAX_PORTS];
-static const char *init_mode;
+static char *irq[PARPORT_PC_MAX_PORTS];
+static char *dma[PARPORT_PC_MAX_PORTS];
+static char *init_mode;

 MODULE_PARM_DESC(io, "Base I/O address (SPP regs)");
 module_param_array(io, int, NULL, 0);
@@ -3190,7 +3190,7 @@
 module_param(verbose_probing, int, 0644);
 #endif
 MODULE_PARM_DESC(init_mode, "Initialise mode for VIA VT8231 port (spp, ps2, epp, ecp or ecpepp)");
-MODULE_PARM(init_mode, "s");
+module_param(init_mode, charp, 0);

 static int __init parse_parport_params(void)
 {



More information about the Linux-parport mailing list