]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: xgifb: replace video_type with FB_TYPE_PACKED_PIXELS
authorAaro Koskinen <aaro.koskinen@iki.fi>
Fri, 19 Aug 2011 19:40:27 +0000 (22:40 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 21:24:26 +0000 (14:24 -0700)
Replace a global variable with a constant.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/XGI_main.h
drivers/staging/xgifb/XGI_main_26.c

index 44b7adc672c60266539ecebd082283f0bd0915f0..39893ca78143ca953ba92cf4bc73bea6bf75f181 100644 (file)
@@ -132,9 +132,6 @@ MODULE_DEVICE_TABLE(pci, xgifb_pci_table);
 /* Fbcon variables */
 static struct fb_info *fb_info;
 
-
-static int    video_type = FB_TYPE_PACKED_PIXELS;
-
 static struct fb_var_screeninfo default_var = {
        .xres           = 0,
        .yres           = 0,
index 630f447b461bb0e88d5e41d26967e764cab5e6e2..4415d4aedbecbbc8e3dc17dfa14bd05718b27769 100644 (file)
@@ -1487,7 +1487,7 @@ static int XGIfb_get_fix(struct fb_fix_screeninfo *fix, int con,
 
        fix->smem_len = xgi_video_info.video_size;
 
-       fix->type = video_type;
+       fix->type = FB_TYPE_PACKED_PIXELS;
        fix->type_aux = 0;
        if (xgi_video_info.video_bpp == 8)
                fix->visual = FB_VISUAL_PSEUDOCOLOR;