diff options
| author | Eric Miao <eric.miao@marvell.com> | 2008-08-28 16:18:43 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-23 17:01:33 -0400 |
| commit | faa312da9cd0b044bdc84483162c6ee10b9c83c0 (patch) | |
| tree | 19171bda6c11fa539d48c6a1568ade215c95ce3e /include/linux | |
| parent | 6ae19b04ab41a4db0f0c48ec0b78950f6b028823 (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/linux')
| -rw-r--r-- | include/linux/lcd.h | 3 |
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 @@ | |||
| 11 | #include <linux/device.h> | 11 | #include <linux/device.h> |
| 12 | #include <linux/mutex.h> | 12 | #include <linux/mutex.h> |
| 13 | #include <linux/notifier.h> | 13 | #include <linux/notifier.h> |
| 14 | #include <linux/fb.h> | ||
| 14 | 15 | ||
| 15 | /* Notes on locking: | 16 | /* Notes on locking: |
| 16 | * | 17 | * |
| @@ -45,6 +46,8 @@ struct lcd_ops { | |||
| 45 | int (*get_contrast)(struct lcd_device *); | 46 | int (*get_contrast)(struct lcd_device *); |
| 46 | /* Set LCD panel contrast */ | 47 | /* Set LCD panel contrast */ |
| 47 | int (*set_contrast)(struct lcd_device *, int contrast); | 48 | int (*set_contrast)(struct lcd_device *, int contrast); |
| 49 | /* Set LCD panel mode (resolutions ...) */ | ||
| 50 | int (*set_mode)(struct lcd_device *, struct fb_videomode *); | ||
| 48 | /* Check if given framebuffer device is the one LCD is bound to; | 51 | /* Check if given framebuffer device is the one LCD is bound to; |
| 49 | return 0 if not, !=0 if it is. If NULL, lcd always matches the fb. */ | 52 | return 0 if not, !=0 if it is. If NULL, lcd always matches the fb. */ |
| 50 | int (*check_fb)(struct lcd_device *, struct fb_info *); | 53 | int (*check_fb)(struct lcd_device *, struct fb_info *); |
