• Anatolij Gustschin's avatar
    drivers/video: fsl-diu-fb: fix pixel formats for 24 and 16 bpp · 5d3cc311
    Anatolij Gustschin authored
    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: default avatarAnatolij Gustschin <agust@denx.de>
    Cc: Timur Tabi <timur@tabi.org>
    Acked-by: default avatarTimur Tabi <timur@freescale.com>
    Cc: stable@vger.kernel.org
    5d3cc311
fsl-diu-fb.c 46.1 KB