From dd210503b77ae04adfdb25ca45536c4f7e33edb1 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Tue, 14 Sep 2010 14:48:54 +0000 Subject: fbdev: sh_mobile_lcdc: reconfigure the framebuffer, when free Currently the sh_mobile_lcdc driver only reconfigures the hardware interface, when a new monitor is plugged in. This patch adds support for dynamic framebuffer reconfiguration, when no user is holding the framebuffer device node open. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Paul Mundt --- drivers/video/sh_mobile_lcdcfb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/video/sh_mobile_lcdcfb.h') diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h index dfd3d766a55..9ecee2fba1d 100644 --- a/drivers/video/sh_mobile_lcdcfb.h +++ b/drivers/video/sh_mobile_lcdcfb.h @@ -3,6 +3,7 @@ #include #include +#include #include /* per-channel registers */ @@ -33,6 +34,8 @@ struct sh_mobile_lcdc_chan { wait_queue_head_t frame_end_wait; struct completion vsync_completion; struct fb_var_screeninfo display_var; + int use_count; + struct mutex open_lock; /* protects the use counter */ }; #endif -- cgit v1.2.3-70-g09d2