MLK-16353-2 video: fbdev: dcss: non-fourcc format should not pass var check
authorFancy Fang <chen.fang@nxp.com>
Mon, 4 Sep 2017 02:31:55 +0000 (10:31 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:27 +0000 (15:38 -0500)
The non-fourcc pixel format for framebuffer is not supported
yet, so the var check cannot pass in this case. Add false
return in this case.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/video/fbdev/mxc/imx_dcss.c

index ffd4c8f..7c70216 100644 (file)
@@ -2423,7 +2423,6 @@ static int dcss_check_var(struct fb_var_screeninfo *var,
 
        switch (var->grayscale) {
        case 0:         /* TODO: color */
-               break;
        case 1:         /* grayscale */
                return -EINVAL;
        default:        /* fourcc */