summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-08-29 04:18:43 +0800
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-23 22:01:33 +0100
commitfaa312da9cd0b044bdc84483162c6ee10b9c83c0 (patch)
tree19171bda6c11fa539d48c6a1568ade215c95ce3e /include
parent6ae19b04ab41a4db0f0c48ec0b78950f6b028823 (diff)
lcd: allow lcd device to handle mode change events
Some LCD panels are capable of different resolutions, and is allowed to change at run-time, so to make "struct lcd_device" to be able to handle mode change events here. Signed-off-by: Eric Miao <eric.miao@marvell.com> Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/lcd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/lcd.h b/include/linux/lcd.h
index 173febac6656..c67fecafff90 100644
--- a/include/linux/lcd.h
+++ b/include/linux/lcd.h
@@ -11,6 +11,7 @@
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/notifier.h>
+#include <linux/fb.h>
/* Notes on locking:
*
@@ -45,6 +46,8 @@ struct lcd_ops {
int (*get_contrast)(struct lcd_device *);
/* Set LCD panel contrast */
int (*set_contrast)(struct lcd_device *, int contrast);
+ /* Set LCD panel mode (resolutions ...) */
+ int (*set_mode)(struct lcd_device *, struct fb_videomode *);
/* Check if given framebuffer device is the one LCD is bound to;
return 0 if not, !=0 if it is. If NULL, lcd always matches the fb. */
int (*check_fb)(struct lcd_device *, struct fb_info *);