]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/video: fsl-diu-fb: fix pixel formats for 24 and 16 bpp
authorAnatolij Gustschin <agust@denx.de>
Thu, 17 Jan 2013 20:28:37 +0000 (21:28 +0100)
committerAnatolij Gustschin <agust@denx.de>
Tue, 29 Jan 2013 08:26:58 +0000 (09:26 +0100)
commit155da5d48e058845acd3930713500d7a8b02118d
tree836eaea9576a6a873c093bb9866966777a38abf0
parentf29bc0a4e3712ddada0b3bc251105689d6ce4f91
drivers/video: fsl-diu-fb: fix pixel formats for 24 and 16 bpp

Framebuffer colors for 24 and 16 bpp are currently wrong. The order
of the color component arguments in the MAKE_PF() is not natural
and causes some confusion. The generated pixel format values for 24
and 16 bpp depths do not much the values in the comments.

Fix the macro arguments to be in the natural RGB order and adjust
the arguments for all depths to generate correct pixel format values
(equal to the values mentioned in the comments).

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Timur Tabi <timur@tabi.org>
Acked-by: Timur Tabi <timur@freescale.com>
drivers/video/fsl-diu-fb.c