]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
staging: xgifb: enable forcecrt2type as a module parameter
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 5 Dec 2011 22:10:49 +0000 (00:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 20:26:09 +0000 (12:26 -0800)
Enable forcecrt2type as a module parameter.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/XGI_main_26.c

index b07c4774f3bfb72f9d0dd06d19547db6bb6f9b58..2502c49c9c5b35efcaed87364064e3d80df4f07d 100644 (file)
@@ -45,6 +45,7 @@
 #define GPIOG_EN    (1<<6)
 #define GPIOG_READ  (1<<1)
 
+static char *forcecrt2type;
 static char *mode;
 static int vesa = -1;
 static unsigned int refresh_rate;
@@ -2358,6 +2359,8 @@ static int __init xgifb_init(void)
 {
        char *option = NULL;
 
+       if (forcecrt2type != NULL)
+               XGIfb_search_crt2type(forcecrt2type);
        if (fb_get_options("xgifb", &option))
                return -ENODEV;
        XGIfb_setup(option);
@@ -2380,6 +2383,11 @@ MODULE_AUTHOR("XGITECH , Others");
 module_param(mode, charp, 0);
 module_param(vesa, int, 0);
 module_param(filter, int, 0);
+module_param(forcecrt2type, charp, 0);
+
+MODULE_PARM_DESC(forcecrt2type,
+       "\nForce the second display output type. Possible values are NONE,\n"
+       "LCD, TV, VGA, SVIDEO or COMPOSITE.\n");
 
 MODULE_PARM_DESC(mode,
        "\nSelects the desired default display mode in the format XxYxDepth,\n"