/* s3c2410fb_set_par - Alters the hardware state. @info: frame buffer structure that represents a single frame buffer  */
static int s3c2410fb_set_par(struct fb_info *info)
/* s3c2410fb_set_par - Alters the hardware state. @info: frame buffer structure that represents a single frame buffer  */
static int s3c2410fb_set_par(struct fb_info *info)
{
	struct fb_var_screeninfo *var = &info->var;
	switch (var->bits_per_pixel) {
	case 32:
	case 16:
	case 12:
		info->fix.visual = FB_VISUAL_TRUECOLOR;
		break;
	case 1:
		info->fix.visual = FB_VISUAL_MONO01;
		break;
	default:
		info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
		break;
	}
	info->fix.line_length = (var->xres_virtual * var->bits_per_pixel) / 8;
	s3c2410fb_activate_var(info);
	return 0;
}