From: Jan Dittmer <jdittmer@ppp0.net>
To: Linux kernel <linux-kernel@vger.kernel.org>
Cc: linux-parport@lists.infradead.org
Subject: [PATCH] parport module_param conversion
Date: Sun, 14 Nov 2004 00:26:59 +0100 [thread overview]
Message-ID: <41969843.50407@ppp0.net> (raw)
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)
{
reply other threads:[~2004-11-13 23:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41969843.50407@ppp0.net \
--to=jdittmer@ppp0.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parport@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.