MLK-14260 video: mipi_dsi_northwest: assign the 'mode' field of fb_info.
authorFancy Fang <chen.fang@nxp.com>
Mon, 13 Mar 2017 08:11:28 +0000 (16:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:50 +0000 (15:21 -0500)
Assign the 'mode' field of fb_info structure to show correct
content when running "cat /sys/class/graphics/fb0/mode".

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 06a16560683047681c46b680efef7af58c75b6b2)

drivers/video/fbdev/mxc/mipi_dsi_northwest.c

index f2067db..dd23f71 100644 (file)
@@ -145,6 +145,8 @@ static int mipi_dsi_lcd_init(struct mipi_dsi_info *mipi_dsi,
                return err;
        }
 
+       setting->fbi->mode = mipi_dsi->mode;
+
        return 0;
 }