DSS2: Add function to display object to get the backlight level
authorImre Deak <imre.deak@nokia.com>
Wed, 1 Apr 2009 12:36:39 +0000 (14:36 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 1 May 2009 16:44:57 +0000 (19:44 +0300)
This is needed by an upcoming patch that changes the backlight
initialization to use the backlight level set by the bootloader.

Also add a field for the maximum backlight level.

Signed-off-by: Imre Deak <imre.deak@nokia.com>
arch/arm/plat-omap/include/mach/display.h

index 6288353..6b702c7 100644 (file)
@@ -211,6 +211,8 @@ struct omap_dss_display_config {
        int panel_reset_gpio;
        int ctrl_reset_gpio;
 
+       int max_backlight_level;
+
        const char *name;               /* for debug */
        const char *ctrl_name;
        const char *panel_name;
@@ -225,6 +227,7 @@ struct omap_dss_display_config {
        void (*ctrl_disable)(struct omap_display *display);
        int (*set_backlight)(struct omap_display *display,
                        int level);
+       int (*get_backlight)(struct omap_display *display);
 };
 
 struct device;