/* Blank the display based on value in blank_mode  */
static int w100fb_blank(int blank_mode, struct fb_info *info)
/* Blank the display based on value in blank_mode  */
static int w100fb_blank(int blank_mode, struct fb_info *info)
{
	struct w100fb_par *par = info->par;
	struct w100_tg_info *tg = par->mach->tg;
	switch(blank_mode) {
 	case FB_BLANK_NORMAL:
	case FB_BLANK_VSYNC_SUSPEND:
	case FB_BLANK_HSYNC_SUSPEND:
 	case FB_BLANK_POWERDOWN:
  		if (par->blanked == 0) {
			if(tg && tg->suspend)
				tg->suspend(par);
			par->blanked = 1;
  		}
  		break;
 	case FB_BLANK_UNBLANK:
  		if (par->blanked != 0) {
			if(tg && tg->resume)
				tg->resume(par);
			par->blanked = 0;
  		}
  		break;
 	}
	return 0;
}