]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
backlight: Fix nvidia backlight initial brightness
authorRichard Purdie <rpurdie@rpsys.net>
Mon, 26 Feb 2007 22:06:09 +0000 (22:06 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Mon, 5 Mar 2007 08:49:38 +0000 (08:49 +0000)
Fix a mix up when the nvidia driver was converted resulting
in the backlight having an incorrect initial brightness.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/video/nvidia/nv_backlight.c

index b7016e9b9e133c7d3e1c42e51775e0fc4ca993ef..a50b303093a7bb50575cf989ee083970a949a902 100644 (file)
@@ -23,8 +23,6 @@
 #define MAX_LEVEL 0x534
 #define LEVEL_STEP ((MAX_LEVEL - MIN_LEVEL) / FB_BACKLIGHT_MAX)
 
-static struct backlight_properties nvidia_bl_data;
-
 static int nvidia_bl_get_level_brightness(struct nvidia_par *par,
                int level)
 {
@@ -119,7 +117,7 @@ void nvidia_bl_init(struct nvidia_par *par)
                0x534 * FB_BACKLIGHT_MAX / MAX_LEVEL);
 
        bd->props.max_brightness = FB_BACKLIGHT_LEVELS - 1;
-       bd->props.brightness = nvidia_bl_data.max_brightness;
+       bd->props.brightness = bd->props.max_brightness;
        bd->props.power = FB_BLANK_UNBLANK;
        backlight_update_status(bd);