aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/vt8500lcdfb.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-05-25 05:34:52 -0400
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-08-19 04:36:12 -0400
commit8f0246d6287fbb37c05b7983ff61c7f57ad86a92 (patch)
tree41017b7e27e22d56258e2a29f24451994c5be97b /drivers/video/vt8500lcdfb.c
parentc272d64111c4fdc0b6a2122452e98a3315bd6b4b (diff)
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>
Diffstat (limited to 'drivers/video/vt8500lcdfb.c')
-rw-r--r--drivers/video/vt8500lcdfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/vt8500lcdfb.c b/drivers/video/vt8500lcdfb.c
index 0e120d67eb6..c13c246be9a 100644
--- a/drivers/video/vt8500lcdfb.c
+++ b/drivers/video/vt8500lcdfb.c
@@ -210,8 +210,8 @@ static int vt8500lcd_pan_display(struct fb_var_screeninfo *var,
210 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info); 210 struct vt8500lcd_info *fbi = to_vt8500lcd_info(info);
211 211
212 writel((1 << 31) 212 writel((1 << 31)
213 | (((var->xres_virtual - var->xres) * pixlen / 4) << 20) 213 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20)
214 | (off >> 2), fbi->regbase + 0x20); 214 | (off >> 2), fbi->regbase + 0x20);
215 return 0; 215 return 0;
216} 216}
217 217