/* Returns negative errno on error, or zero on success.  */
static int s1d13xxxfb_blank(int blank_mode, struct fb_info *info)
/* Returns negative errno on error, or zero on success.  */
static int s1d13xxxfb_blank(int blank_mode, struct fb_info *info)
{
	struct s1d13xxxfb_par *par = info->par;
	dbg("s1d13xxxfb_blank: blank=%d, info=%p\n", blank_mode, info);
	switch (blank_mode) {
		case FB_BLANK_UNBLANK:
		case FB_BLANK_NORMAL:
			if ((par->display & 0x01) != 0)
				lcd_enable(par, 1);
			if ((par->display & 0x02) != 0)
				crt_enable(par, 1);
			break;
		case FB_BLANK_VSYNC_SUSPEND:
		case FB_BLANK_HSYNC_SUSPEND:
			break;
		case FB_BLANK_POWERDOWN:
			lcd_enable(par, 0);
			crt_enable(par, 0);
			break;
		default:
			return -EINVAL;
	}
	return ((blank_mode == FB_BLANK_NORMAL) ? 1 : 0);
}