Commit de351ba6 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman
Browse files

staging: xgifb: replace video_type with FB_TYPE_PACKED_PIXELS



Replace a global variable with a constant.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e1521a16
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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;