]> Pileus Git - ~andy/linux/blobdiff - drivers/video/uvesafb.c
param: use ops in struct kernel_param, rather than get and set fns directly
[~andy/linux] / drivers / video / uvesafb.c
index 7b8839ebf3c402ced009123ac6260c97a51a922a..52ec0959d462aedeff308ff3106acfd53f0a0ff1 100644 (file)
@@ -1977,8 +1977,7 @@ static void __devexit uvesafb_exit(void)
 
 module_exit(uvesafb_exit);
 
-#define param_get_scroll NULL
-static int param_set_scroll(const char *val, struct kernel_param *kp)
+static int param_set_scroll(const char *val, const struct kernel_param *kp)
 {
        ypan = 0;
 
@@ -1993,7 +1992,9 @@ static int param_set_scroll(const char *val, struct kernel_param *kp)
 
        return 0;
 }
-
+static struct kernel_param_ops param_ops_scroll = {
+       .set = param_set_scroll,
+};
 #define param_check_scroll(name, p) __param_check(name, p, void)
 
 module_param_named(scroll, ypan, scroll, 0);