* [PATCH] parport module_param conversion
@ 2004-11-13 23:26 Jan Dittmer
0 siblings, 0 replies; only message in thread
From: Jan Dittmer @ 2004-11-13 23:26 UTC (permalink / raw)
To: Linux kernel; +Cc: linux-parport
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@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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-13 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-13 23:26 [PATCH] parport module_param conversion Jan Dittmer
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.