Commit 5eb03a4a authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

uvesafb: small cleanups

Some cleanups in uvesafb:
- The custom module_param() get/set functions don't need to be inlined
  since it is referred to via a pointer in a struct.
- don't end a #define with a ';'
- remove one of the single quote marks in "''ypan'"
Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Michal Januszewski <spock@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0ce85eb8
...@@ -2003,12 +2003,12 @@ static void __devexit uvesafb_exit(void) ...@@ -2003,12 +2003,12 @@ static void __devexit uvesafb_exit(void)
module_exit(uvesafb_exit); module_exit(uvesafb_exit);
static inline int param_get_scroll(char *buffer, struct kernel_param *kp) static int param_get_scroll(char *buffer, struct kernel_param *kp)
{ {
return 0; return 0;
} }
static inline int param_set_scroll(const char *val, struct kernel_param *kp) static int param_set_scroll(const char *val, struct kernel_param *kp)
{ {
ypan = 0; ypan = 0;
...@@ -2022,11 +2022,11 @@ static inline int param_set_scroll(const char *val, struct kernel_param *kp) ...@@ -2022,11 +2022,11 @@ static inline int param_set_scroll(const char *val, struct kernel_param *kp)
return 0; return 0;
} }
#define param_check_scroll(name, p) __param_check(name, p, void); #define param_check_scroll(name, p) __param_check(name, p, void)
module_param_named(scroll, ypan, scroll, 0); module_param_named(scroll, ypan, scroll, 0);
MODULE_PARM_DESC(scroll, MODULE_PARM_DESC(scroll,
"Scrolling mode, set to 'redraw', ''ypan' or 'ywrap'"); "Scrolling mode, set to 'redraw', 'ypan', or 'ywrap'");
module_param_named(vgapal, pmi_setpal, invbool, 0); module_param_named(vgapal, pmi_setpal, invbool, 0);
MODULE_PARM_DESC(vgapal, "Set palette using VGA registers"); MODULE_PARM_DESC(vgapal, "Set palette using VGA registers");
module_param_named(pmipal, pmi_setpal, bool, 0); module_param_named(pmipal, pmi_setpal, bool, 0);
......
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