 printk(KERN_DEBUG "%s()\n", __FUNCTION__); 
static int gx1fb_check_var(struct fb_var_screeninfo *var, struct fb_info *info){	struct geodefb_par *par = info->par;	printk(KERN_DEBUG "%s()\n", __FUNCTION__);	/* Maximum resolution is 1280x1024. */	if (var->xres > 1280 || var->yres > 1024)		return -EINVAL;	if (par->panel_x && (var->xres > par->panel_x || var->yres > par->panel_y))		return -EINVAL;	/* Only 16 bpp and 8 bpp is supported by the hardware. */	if (var->bits_per_pixel == 16) {		var->red.offset   = 11; var->red.length   = 5;		var->green.offset =  5; var->green.length = 6;		var->blue.offset  =  0; var->blue.length  = 5;		var->transp.offset = 0; var->transp.length = 0;	} else if (var->bits_per_pixel == 8) {		var->red.offset   = 0; var->red.length   = 8;		var->green.offset = 0; var->green.length = 8;		var->blue.offset  = 0; var->blue.length  = 8;		var->transp.offset = 0; var->transp.length = 0;	} else		return -EINVAL;	/* Enough video memory? */	if (gx1_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len)		return -EINVAL;	/* FIXME: Check timing parameters here? */	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/53eed4ec8bcd8701b9135859ec46b10a0d88ba25/gx1fb_core.c/buggy/drivers/video/geode/gx1fb_core.c