]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: copyarea function taught to fully support swapped pixel order in byte
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Tue, 16 Oct 2007 08:29:55 +0000 (01:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:23 +0000 (09:43 -0700)
commit1281b2f4130e9f1d129175cceda76e59bfff3afc
tree0e59d4eeb2e66af72a4b1a1fead29fa362826792
parentba892fc9ff7c95853f4823e9c7acde6a61d11143
fbdev: copyarea function taught to fully support swapped pixel order in byte

This correct case, when source and destination X coordinates difference is n
multiple of pixels in byte.  This is probably rare case, but this case should
supported for completeness.

Reorganization of FB_READL and FB_WRITEL calls results in code size decrease
for normal build without swapping support and size with support enabled is
reasonable too.

[adaplas]
Add missing fb_rev_pixels_in_long() prototype.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/cfbcopyarea.c
drivers/video/fb_draw.h