Skip to content

Commit

Permalink
backlight: Fix nvidia backlight initial brightness
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Purdie committed Mar 5, 2007
1 parent 20b0f65 commit 238576e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/video/nvidia/nv_backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 238576e

Please sign in to comment.