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
6 This is needed by an upcoming patch that changes the backlight
7 initialization to use the backlight level set by the bootloader.
9 Also add a field for the maximum backlight level.
11 Signed-off-by: Imre Deak <imre.deak@nokia.com>
13 arch/arm/plat-omap/include/mach/display.h | 3 +++
14 1 files changed, 3 insertions(+), 0 deletions(-)
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 {
24 + int max_backlight_level;
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,
33 + int (*get_backlight)(struct omap_display *display);