tgafb: fix data copying
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jan 2014 19:43:10 +0000 (14:43 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:56:10 +0000 (09:56 +0200)
commit80ad3f6cf355495c4c431f18013108e09e071ec2
tree058867e50bb15eb4be4cc2e9ff78a16146d930f0
parentee651d1c1656778b9c69ea9689e7ca36f01aa507
tgafb: fix data copying

commit 6b0df6827bb6fcacb158dff29ad0a62d6418b534 upstream.

The functions for data copying copyarea_foreward_8bpp and
copyarea_backward_8bpp are buggy, they produce screen corruption.

This patch fixes the functions and moves the logic to one function
"copyarea_8bpp". For simplicity, the function only handles copying that
is aligned on 8 pixes. If we copy an unaligned area, generic function
cfb_copyarea is used.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/video/tgafb.c