diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2014-01-23 19:44:00 (GMT) |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-02-11 13:01:05 (GMT) |
commit | e62cabb5e9949bd51f68832b5ec9e18fcd323e20 (patch) | |
tree | 9f95feb587a98121663d683ceef6d5f78904bc36 /arch/arm/mach-imx/mach-mx27ads.c | |
parent | 6b0df6827bb6fcacb158dff29ad0a62d6418b534 (diff) | |
download | linux-e62cabb5e9949bd51f68832b5ec9e18fcd323e20.tar.xz |
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 <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx27ads.c')
0 files changed, 0 insertions, 0 deletions