struct vga16fb_par *par = (struct vga16fb_par *) info->par; 
struct vga16fb_par *par = info->par; 
static int vga16fb_setcolreg(unsigned regno, unsigned red, unsigned green,			     unsigned blue, unsigned transp,			     struct fb_info *info){	struct vga16fb_par *par = (struct vga16fb_par *) info->par;	int gray;	/*	 *  Set a single color register. The values supplied are	 *  already rounded down to the hardware's capabilities	 *  (according to the entries in the `var' structure). Return	 *  != 0 for invalid regno.	 */		if (regno >= 256)		return 1;	gray = info->var.grayscale;		if (gray) {		/* gray = 0.30*R + 0.59*G + 0.11*B */		red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8;	}	if (par->isVGA) 		vga16_setpalette(regno,red,green,blue);	else		ega16_setpalette(regno,red,green,blue);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/120ddb41f18c2d41702af561f4acfbcbd8d6fb46/vga16fb.c/buggy/drivers/video/vga16fb.c