]> git.kernelconcepts.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:39 +0000 (05:38 -0800)
commitbceed1271db7dbaf9ae6649d508f0577f49d4892
treea237b254b3149058ef48adcb822ca1408d037eee
parent229cbc0903bd7c4eeb12b3618cfb7dd308e3c847
drivers/video: fsl-diu-fb: fix pixel formats for 24 and 16 bpp

commit 5d3cc311a76073f6e0a27c0752f7e41f69e95ea7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fsl-diu-fb.c