Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: xgifb: reorder the code a bit to be more module friendly

Signed-off-by: Miguel Gómez <magomez@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Miguel Gómez and committed by
Greg Kroah-Hartman
d049053e f0590773

+30 -31
+30 -31
drivers/staging/xgifb/XGI_main_26.c
··· 2306 2306 .remove = __devexit_p(xgifb_remove) 2307 2307 }; 2308 2308 2309 + 2310 + 2311 + /*****************************************************/ 2312 + /* MODULE */ 2313 + /*****************************************************/ 2314 + 2315 + module_param(mode, charp, 0); 2316 + MODULE_PARM_DESC(mode, 2317 + "\nSelects the desired default display mode in the format XxYxDepth,\n" 2318 + "eg. 1024x768x16.\n"); 2319 + 2320 + module_param(forcecrt2type, charp, 0); 2321 + MODULE_PARM_DESC(forcecrt2type, 2322 + "\nForce the second display output type. Possible values are NONE,\n" 2323 + "LCD, TV, VGA, SVIDEO or COMPOSITE.\n"); 2324 + 2325 + module_param(vesa, int, 0); 2326 + MODULE_PARM_DESC(vesa, 2327 + "\nSelects the desired default display mode by VESA mode number, eg.\n" 2328 + "0x117.\n"); 2329 + 2330 + module_param(filter, int, 0); 2331 + MODULE_PARM_DESC(filter, 2332 + "\nSelects TV flicker filter type (only for systems with a SiS301 video bridge).\n" 2333 + "(Possible values 0-7, default: [no filter])\n"); 2334 + 2309 2335 static int __init xgifb_init(void) 2310 2336 { 2311 2337 char *option = NULL; ··· 2345 2319 return pci_register_driver(&xgifb_driver); 2346 2320 } 2347 2321 2348 - module_init(xgifb_init); 2349 - 2350 - /*****************************************************/ 2351 - /* MODULE */ 2352 - /*****************************************************/ 2353 - 2354 - MODULE_DESCRIPTION("Z7 Z9 Z9S Z11 framebuffer device driver"); 2355 - MODULE_LICENSE("GPL"); 2356 - MODULE_AUTHOR("XGITECH , Others"); 2357 - 2358 - module_param(mode, charp, 0); 2359 - module_param(vesa, int, 0); 2360 - module_param(filter, int, 0); 2361 - module_param(forcecrt2type, charp, 0); 2362 - 2363 - MODULE_PARM_DESC(forcecrt2type, 2364 - "\nForce the second display output type. Possible values are NONE,\n" 2365 - "LCD, TV, VGA, SVIDEO or COMPOSITE.\n"); 2366 - 2367 - MODULE_PARM_DESC(mode, 2368 - "\nSelects the desired default display mode in the format XxYxDepth,\n" 2369 - "eg. 1024x768x16.\n"); 2370 - 2371 - MODULE_PARM_DESC(vesa, 2372 - "\nSelects the desired default display mode by VESA mode number, eg.\n" 2373 - "0x117.\n"); 2374 - 2375 - MODULE_PARM_DESC(filter, 2376 - "\nSelects TV flicker filter type (only for systems with a SiS301 video bridge).\n" 2377 - "(Possible values 0-7, default: [no filter])\n"); 2378 - 2379 2322 static void __exit xgifb_remove_module(void) 2380 2323 { 2381 2324 pci_unregister_driver(&xgifb_driver); 2382 2325 pr_debug("Module unloaded\n"); 2383 2326 } 2384 2327 2328 + MODULE_DESCRIPTION("Z7 Z9 Z9S Z11 framebuffer device driver"); 2329 + MODULE_LICENSE("GPL"); 2330 + MODULE_AUTHOR("XGITECH , Others"); 2331 + module_init(xgifb_init); 2385 2332 module_exit(xgifb_remove_module);