mx3fb: use display information in info not in var for panning
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 25 May 2011 09:34:52 +0000 (11:34 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 19 Aug 2011 08:32:52 +0000 (10:32 +0200)
commit9f1b3ebbce04dc61986a1b3b41b0f1b1a77a5cc4
tree86085e8614b383f2c3a41865f0a9bd9ebb7b7020
parent23dc8b1c07f75427510d56fa7c263dd1371ec2e4
mx3fb: 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. Also use the
aligned fix.line_length and not the (possible) unaligned xres_virtual.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
drivers/video/mx3fb.c