From b9cf45f00c6e120f58f02f45ef949a7be54da999 Mon Sep 17 00:00:00 2001 From: Bastian Stender Date: Tue, 28 Feb 2017 15:31:26 +0100 Subject: fb: introduce flush for virtual framebuffer Some drivers need an explicit sync method to flush the virtual framebuffer to the display. It is called fb_flush(). fb_flush() gets called on fbc_putc, on fb_close and in the pattern cycle in the fbtest command. Signed-off-by: Bastian Stender Signed-off-by: Sascha Hauer --- include/fb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/fb.h b/include/fb.h index b2a9c7152b..271b939968 100644 --- a/include/fb.h +++ b/include/fb.h @@ -86,6 +86,7 @@ struct fb_ops { void (*fb_enable)(struct fb_info *info); void (*fb_disable)(struct fb_info *info); int (*fb_activate_var)(struct fb_info *info); + void (*fb_flush)(struct fb_info *info); }; /* @@ -152,6 +153,7 @@ int register_framebuffer(struct fb_info *info); int fb_enable(struct fb_info *info); int fb_disable(struct fb_info *info); +void fb_flush(struct fb_info *info); #define FBIOGET_SCREENINFO _IOR('F', 1, loff_t) #define FBIO_ENABLE _IO('F', 2) -- cgit v1.2.3