From: "Antonino A. Daplas" <adaplas@hotpop.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Fbdev development list
<linux-fbdev-devel@lists.sourceforge.net>,
Sylvain Meyer <sylvain.meyer@ifrance.com>
Subject: [PATCH 3/15] fbdev: Convert MODULE_PARM to module_param in intelfb
Date: Fri, 29 Oct 2004 09:58:15 +0800 [thread overview]
Message-ID: <200410290958.15912.adaplas@hotpop.com> (raw)
fbdev: Convert MODULE_PARM to module_param in intelfb
Signed-off-by: Antonino Daplas <adaplas@pol.net>
---
intelfb.h | 6 +++---
intelfbdrv.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff -Nru a/drivers/video/intelfb/intelfb.h b/drivers/video/intelfb/intelfb.h
--- a/drivers/video/intelfb/intelfb.h 2004-10-23 23:13:14 +08:00
+++ b/drivers/video/intelfb/intelfb.h 2004-10-28 20:56:42 +08:00
@@ -97,12 +97,12 @@
/* module parameters */
#define INTELFB_INT_PARAM(name, default, desc) \
static int name = default; \
- MODULE_PARM(name, "i"); \
+ module_param(name, int, default); \
MODULE_PARM_DESC(name, desc);
#define INTELFB_STR_PARAM(name, default, desc) \
- static const char *name = default; \
- MODULE_PARM(name, "s"); \
+ static char *name = (char *) default; \
+ module_param(name, charp, default); \
MODULE_PARM_DESC(name, desc);
/* misc macros */
diff -Nru a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
--- a/drivers/video/intelfb/intelfbdrv.c 2004-10-23 23:13:14 +08:00
+++ b/drivers/video/intelfb/intelfbdrv.c 2004-10-28 20:56:42 +08:00
@@ -197,7 +197,7 @@
INTELFB_INT_PARAM(idonly, 0,
"Just identify without doing anything else (debug)");
INTELFB_INT_PARAM(bailearly, 0, "Bail out early, depending on value (debug)");
-INTELFB_STR_PARAM(mode, NULL,
+INTELFB_STR_PARAM(mode, 0,
"Initial video mode \"<xres>x<yres>[-<depth>][@<refresh>]\"");
/***************************************************************
* modules entry points *
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
reply other threads:[~2004-10-29 1:58 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=200410290958.15912.adaplas@hotpop.com \
--to=adaplas@hotpop.com \
--cc=akpm@osdl.org \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=sylvain.meyer@ifrance.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).