]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
4c8d432dd52e1bed3fdd6d90e28e3e778047801d
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From 4741076cae4f4284e1fff9a03f35475b8455af54 Mon Sep 17 00:00:00 2001
2 From: Imre Deak <imre.deak@nokia.com>
3 Date: Wed, 1 Apr 2009 14:36:39 +0200
4 Subject: [PATCH] DSS2: Add function to display object to get the backlight level
5
6 This is needed by an upcoming patch that changes the backlight
7 initialization to use the backlight level set by the bootloader.
8
9 Also add a field for the maximum backlight level.
10
11 Signed-off-by: Imre Deak <imre.deak@nokia.com>
12 ---
13 arch/arm/plat-omap/include/mach/display.h | 3 +++
14 1 files changed, 3 insertions(+), 0 deletions(-)
15
16 diff --git a/arch/arm/plat-omap/include/mach/display.h b/arch/arm/plat-omap/include/mach/display.h
17 index 6288353..6b702c7 100644
18 --- a/arch/arm/plat-omap/include/mach/display.h
19 +++ b/arch/arm/plat-omap/include/mach/display.h
20 @@ -211,6 +211,8 @@ struct omap_dss_display_config {
21 int panel_reset_gpio;
22 int ctrl_reset_gpio;
23
24 + int max_backlight_level;
25 +
26 const char *name; /* for debug */
27 const char *ctrl_name;
28 const char *panel_name;
29 @@ -225,6 +227,7 @@ struct omap_dss_display_config {
30 void (*ctrl_disable)(struct omap_display *display);
31 int (*set_backlight)(struct omap_display *display,
32 int level);
33 + int (*get_backlight)(struct omap_display *display);
34 };
35
36 struct device;
37 --
38 1.5.6.5
39