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 (08:26 +0000)
commit5d3cc311a76073f6e0a27c0752f7e41f69e95ea7
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>
Cc: stable@vger.kernel.org
drivers/video/fsl-diu-fb.c