((u16*)(info->pseudo_palette))[regno] = v; 
cinfo->pseudo_palette[regno] = v; 
static int cirrusfb_setcolreg (unsigned regno, unsigned red, unsigned green,			       unsigned blue, unsigned transp,			       struct fb_info *info){	struct cirrusfb_info *cinfo = info->par;	if (regno > 255)		return -EINVAL;	if (info->fix.visual == FB_VISUAL_TRUECOLOR) {		u32 v;		red >>= (16 - info->var.red.length);		green >>= (16 - info->var.green.length);		blue >>= (16 - info->var.blue.length);		if (regno>=16)			return 1;		v = (red << info->var.red.offset) |		    (green << info->var.green.offset) |		    (blue << info->var.blue.offset);		switch (info->var.bits_per_pixel) {			case 8:				((u8*)(info->pseudo_palette))[regno] = v;				break;			case 16:				((u16*)(info->pseudo_palette))[regno] = v;				break;			case 24:			case 32:				((u32*)(info->pseudo_palette))[regno] = v;				break;		}		return 0;	}	cinfo->palette[regno].red = red;	cinfo->palette[regno].green = green;	cinfo->palette[regno].blue = blue;	if (info->var.bits_per_pixel == 8) {			WClut (cinfo, regno, red >> 10, green >> 10, blue >> 10);	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/49d5c7b08713c3a482d62b5a0ad41b4ec32905a5/cirrusfb.c/buggy/drivers/video/cirrusfb.c