/* Returns negative errno on error, or zero on success.  */
static int epson1355fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
/* Returns negative errno on error, or zero on success.  */
static int epson1355fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
{
	struct epson1355_par *par = info->par;
	u32 start;
	if (var->xoffset != 0)
		return -EINVAL;
	if (var->yoffset + info->var.yres > info->var.yres_virtual)
		return -EINVAL;
	start = (info->fix.line_length >> 1) * var->yoffset;
	epson1355_write_reg20(par, start, REG_SCRN1_DISP_START_ADDR0);
	return 0;
}