case 24: 
case 32: 
clcdfb_set_bitfields(struct clcd_fb *fb, struct fb_var_screeninfo *var){	int ret = 0;	memset(&var->transp, 0, sizeof(var->transp));	memset(&var->red, 0, sizeof(var->red));	memset(&var->green, 0, sizeof(var->green));	memset(&var->blue, 0, sizeof(var->blue));	switch (var->bits_per_pixel) {	case 1:	case 2:	case 4:	case 8:		var->red.length		= var->bits_per_pixel;		var->red.offset		= 0;		var->green.length	= var->bits_per_pixel;		var->green.offset	= 0;		var->blue.length	= var->bits_per_pixel;		var->blue.offset	= 0;		break;	case 16:		var->red.length		= 5;		var->green.length	= 5;		var->blue.length	= 5;		if (fb->panel->cntl & CNTL_BGR) {			var->red.offset		= 10;			var->green.offset	= 5;			var->blue.offset	= 0;		} else {			var->red.offset		= 0;			var->green.offset	= 5;			var->blue.offset	= 10;		}		break;	case 24:		if (fb->panel->cntl & CNTL_LCDTFT) {			var->red.length		= 8;			var->green.length	= 8;			var->blue.length	= 8;			if (fb->panel->cntl & CNTL_BGR) {				var->red.offset		= 16;				var->green.offset	= 8;				var->blue.offset	= 0;			} else {				var->red.offset		= 0;				var->green.offset	= 8;				var->blue.offset	= 16;			}			break;		}	default:		ret = -EINVAL;		break;	}	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/82235e9170f19fa327361ee82a76618e60f2db47/amba-clcd.c/buggy/drivers/video/amba-clcd.c