Commit 5b88fa22 authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: Convert MODULE_PARM to module_param in intelfb

fbdev: Convert MODULE_PARM to module_param in intelfb
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7854a483
...@@ -97,12 +97,12 @@ ...@@ -97,12 +97,12 @@
/* module parameters */ /* module parameters */
#define INTELFB_INT_PARAM(name, default, desc) \ #define INTELFB_INT_PARAM(name, default, desc) \
static int name = default; \ static int name = default; \
MODULE_PARM(name, "i"); \ module_param(name, int, default); \
MODULE_PARM_DESC(name, desc); MODULE_PARM_DESC(name, desc);
#define INTELFB_STR_PARAM(name, default, desc) \ #define INTELFB_STR_PARAM(name, default, desc) \
static const char *name = default; \ static char *name = (char *) default; \
MODULE_PARM(name, "s"); \ module_param(name, charp, default); \
MODULE_PARM_DESC(name, desc); MODULE_PARM_DESC(name, desc);
/* misc macros */ /* misc macros */
......
...@@ -197,7 +197,7 @@ INTELFB_INT_PARAM(probeonly, 0, "Do a minimal probe (debug)"); ...@@ -197,7 +197,7 @@ INTELFB_INT_PARAM(probeonly, 0, "Do a minimal probe (debug)");
INTELFB_INT_PARAM(idonly, 0, INTELFB_INT_PARAM(idonly, 0,
"Just identify without doing anything else (debug)"); "Just identify without doing anything else (debug)");
INTELFB_INT_PARAM(bailearly, 0, "Bail out early, depending on value (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>]\""); "Initial video mode \"<xres>x<yres>[-<depth>][@<refresh>]\"");
/*************************************************************** /***************************************************************
* modules entry points * * modules entry points *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment