Skip to content

Commit

Permalink
staging: xgifb: replace video_type with FB_TYPE_PACKED_PIXELS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent e1521a1 commit de351ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/xgifb/XGI_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de351ba

Please sign in to comment.