From: Mikulas Patocka Date: Thu, 23 Jan 2014 19:44:00 +0000 (-0500) Subject: tgafb: avoid restriction on modes with line length not a multiple of 64 X-Git-Tag: v3.15-rc1~63^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e62cabb5e9949bd51f68832b5ec9e18fcd323e20;p=pandora-kernel.git tgafb: avoid restriction on modes with line length not a multiple of 64 In tgafb there is a restriction that prevents the user from setting a videomode with line length not a multiple of 64 bytes (for example, 800x600 is not allowed). The reason for this restriction it that functions copyarea_line_8bpp and copyarea_line_32bpp can not handle a line length that is not a multiple of 64 bytes. This patch removes this restriction on mode setting and makes sure that the functions copyarea_line_8bpp and copyarea_line_32bpp are called only if line length is a multiple of 64 bytes. If we set a mode 800x600, the functions copyarea_line_8bpp and copyarea_line_32bpp are not used, generic functions for copying are used instead and it works just fine. Signed-off-by: Mikulas Patocka Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed