tgafb: fix data copying
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Jan 2014 19:43:10 +0000 (14:43 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 11 Feb 2014 13:01:04 +0000 (15:01 +0200)
commit6b0df6827bb6fcacb158dff29ad0a62d6418b534
tree23beb791a26c9a33070d300f170bbcfe794455e1
parent624966589041deb32a2626ee2e176e8274581101
tgafb: fix data copying

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>
Cc: stable@vger.kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/tgafb.c