[PATCH] parport module_param conversion

From: Jan Dittmer
Date: Sat Nov 13 2004 - 18:43:03 EST

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@xxxxxxxx>

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);
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)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/