aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_lcdcfb.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-09-14 10:48:54 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-09-16 03:36:17 -0400
commitdd210503b77ae04adfdb25ca45536c4f7e33edb1 (patch)
tree14f3e8775c17906f8216618d1f7a97ee6927a50e /drivers/video/sh_mobile_lcdcfb.h
parent52d5ac0073eb5faf284574bd98a25a65053eaae0 (diff)
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 <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.h')
-rw-r--r--drivers/video/sh_mobile_lcdcfb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.h b/drivers/video/sh_mobile_lcdcfb.h
index dfd3d766a556..9ecee2fba1d7 100644
--- a/drivers/video/sh_mobile_lcdcfb.h
+++ b/drivers/video/sh_mobile_lcdcfb.h
@@ -3,6 +3,7 @@
3 3
4#include <linux/completion.h> 4#include <linux/completion.h>
5#include <linux/fb.h> 5#include <linux/fb.h>
6#include <linux/mutex.h>
6#include <linux/wait.h> 7#include <linux/wait.h>
7 8
8/* per-channel registers */ 9/* per-channel registers */
@@ -33,6 +34,8 @@ struct sh_mobile_lcdc_chan {
33 wait_queue_head_t frame_end_wait; 34 wait_queue_head_t frame_end_wait;
34 struct completion vsync_completion; 35 struct completion vsync_completion;
35 struct fb_var_screeninfo display_var; 36 struct fb_var_screeninfo display_var;
37 int use_count;
38 struct mutex open_lock; /* protects the use counter */
36}; 39};
37 40
38#endif 41#endif