Geert Uytterhoeven dcfe2666ff [PATCH] fb_videomode_to_var: reset virtual screen parameters
fb_videomode_to_var(): reset the virtual screen parameters when converting
from an fb_videomode to an fb_var_screeninfo.

Without this the old virtual screen parameters are kept.  Hence you cannot
switch to a video mode with a lower resolution on frame buffer devices that
don't support virtual screens and panning, as values are not supposed to be
rounded down when they don't fit.

I also reordered the assignments to match the order of the individual members.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: James Simmons <jsimmons@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-02-12 09:48:44 -08:00
..
2007-02-12 09:48:42 -08:00
2005-04-16 15:20:36 -07:00
2006-12-08 08:28:50 -08:00
2007-02-12 09:48:43 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-02-12 09:48:43 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-11-16 22:18:28 -08:00
2006-10-19 16:30:32 +09:00
2007-02-12 09:48:43 -08:00
2006-10-03 23:01:26 +02:00
2007-02-12 09:48:41 -08:00
2006-01-17 15:53:11 -08:00
2006-12-13 09:05:55 -08:00
2007-02-12 09:48:41 -08:00
2005-04-16 15:20:36 -07:00