diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-06-14 09:25:05 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-15 15:04:45 +0900 |
commit | 3478b1cd43284ef798974384ba894eadc37fc1d9 (patch) | |
tree | a2e02fe2eff2153b42aaa4ad7485ee1bbb0b03e8 | |
parent | 83f0e27c253554b7be329e2786d0814a276fd240 (diff) | |
download | linux-3478b1cd43284ef798974384ba894eadc37fc1d9.tar.gz linux-3478b1cd43284ef798974384ba894eadc37fc1d9.tar.bz2 linux-3478b1cd43284ef798974384ba894eadc37fc1d9.zip |
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>
-rw-r--r-- | drivers/video/vt8500lcdfb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/vt8500lcdfb.c b/drivers/video/vt8500lcdfb.c index 0e120d67eb65..c13c246be9a5 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, 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; } |