mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 11:46:47 +07:00
vt8500lcdfb: use display information in info not in var for panning
We must not use any information in the passed var besides xoffset, yoffset and vmode as otherwise applications might abuse it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Alexey Charkov <alchark@gmail.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
83f0e27c25
commit
3478b1cd43
@ -210,8 +210,8 @@ static int vt8500lcd_pan_display(struct fb_var_screeninfo *var,
|
||||
struct vt8500lcd_info *fbi = to_vt8500lcd_info(info);
|
||||
|
||||
writel((1 << 31)
|
||||
| (((var->xres_virtual - var->xres) * pixlen / 4) << 20)
|
||||
| (off >> 2), fbi->regbase + 0x20);
|
||||
| (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20)
|
||||
| (off >> 2), fbi->regbase + 0x20);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user