From: Liu Ying Date: Wed, 19 Sep 2012 02:26:25 +0000 (+0800) Subject: ENGR00224910 IPUv3 fb:Correct logic to check BGR24 for if= option X-Git-Tag: v3.0.35-fsl~456 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=469ff107d173312601c8ea584694fa66b5a8be8a;p=karo-tx-linux.git ENGR00224910 IPUv3 fb:Correct logic to check BGR24 for if= option This patch corrects the logic to check BGR24 pixel format for 'if=' option in kernel bootup command line of framebuffer. After applying the patch, users may use 'if=BGR24' to specify the display data format to be BGR24. For example, 'video=mxcfb0: dev=lcd,LCD_VIDEO_NAME,if=BGR24' makes IPUv3 output BGR24 data to fb0's lcd panel. Signed-off-by: Liu Ying (cherry picked from commit 7ab85674f63eb1388e44a61e17891f0e283c409a) --- diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c index 745c485016d0..8152c47a4434 100644 --- a/drivers/video/mxc/mxc_ipuv3_fb.c +++ b/drivers/video/mxc/mxc_ipuv3_fb.c @@ -1887,7 +1887,7 @@ static int mxcfb_option_setup(struct platform_device *pdev) if (!strncmp(opt+3, "RGB24", 5)) { pdata->interface_pix_fmt = IPU_PIX_FMT_RGB24; continue; - } else if (!strncmp(opt+6, "BGR24", 5)) { + } else if (!strncmp(opt+3, "BGR24", 5)) { pdata->interface_pix_fmt = IPU_PIX_FMT_BGR24; continue; }