MLK-13993: video: Distinguish fb0 and fb1 in userspace.
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Fri, 17 Feb 2017 04:54:11 +0000 (12:54 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:44 +0000 (15:10 -0500)
In userspace, user can not distinguish fb0 and fb1, so add fb1/name property to
distinguish them.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/video/fbdev/mxsfb.c

index 63db6a2..25ad8db 100644 (file)
@@ -1936,6 +1936,8 @@ static void init_mxsfb_overlay(struct mxsfb_info *fbi,
        ofb->blank_state = -1;
        ofb->global_alpha = 255;
        ofb->fbi = fbi;
+
+       sprintf(ofb->ol_fb->fix.id, "FG");
 }
 
 static int mxsfb_overlay_map_video_memory(struct mxsfb_info *fbi,