savagefb: 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:34:44 +0000 (10:34 +0200)
commite1599cf8c7ab93cb4bbd67516f5c989211335df1
tree54a1ab94b8abc760f5f2575970b4c38dea558927
parent305e0e4dbcd038625786a40e9fa801ba5b18b2a2
savagefb: 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>
Reviewed-by: Tormod Volden <debian.tormod@gmail.com>
drivers/video/savage/savagefb_driver.c