From: Aaro Koskinen Date: Fri, 19 Aug 2011 19:40:27 +0000 (+0300) Subject: staging: xgifb: replace video_type with FB_TYPE_PACKED_PIXELS X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de351ba690422fbee2a8c01031ef0eb6fd75cfc0;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git staging: xgifb: replace video_type with FB_TYPE_PACKED_PIXELS Replace a global variable with a constant. Signed-off-by: Aaro Koskinen Reviewed-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/xgifb/XGI_main.h b/drivers/staging/xgifb/XGI_main.h index 44b7adc672c6..39893ca78143 100644 --- a/drivers/staging/xgifb/XGI_main.h +++ b/drivers/staging/xgifb/XGI_main.h @@ -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, diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c index 630f447b461b..4415d4aedbec 100644 --- a/drivers/staging/xgifb/XGI_main_26.c +++ b/drivers/staging/xgifb/XGI_main_26.c @@ -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;