diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-05 11:25:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-05 11:25:43 -0500 |
commit | 227c5fe7993a5430e582dfd4c3acd9484004c6fc (patch) | |
tree | 9724f1cbebaae71f86c8f2d168f34380355a6f0f /drivers/video/nvidia/nv_backlight.c | |
parent | 6ebf622b2577c50b1f496bd6a5e8739e55ae7b1c (diff) | |
parent | 202d4e602555e68c2bc71775228876b0356785c8 (diff) |
Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
backlight: Allow enable/disable of fb backlights, fixing regressions
backlight: Fix nvidia backlight initial brightness
Diffstat (limited to 'drivers/video/nvidia/nv_backlight.c')
-rw-r--r-- | drivers/video/nvidia/nv_backlight.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/nvidia/nv_backlight.c b/drivers/video/nvidia/nv_backlight.c index b7016e9b9e13..a50b303093a7 100644 --- a/drivers/video/nvidia/nv_backlight.c +++ b/drivers/video/nvidia/nv_backlight.c | |||
@@ -23,8 +23,6 @@ | |||
23 | #define MAX_LEVEL 0x534 | 23 | #define MAX_LEVEL 0x534 |
24 | #define LEVEL_STEP ((MAX_LEVEL - MIN_LEVEL) / FB_BACKLIGHT_MAX) | 24 | #define LEVEL_STEP ((MAX_LEVEL - MIN_LEVEL) / FB_BACKLIGHT_MAX) |
25 | 25 | ||
26 | static struct backlight_properties nvidia_bl_data; | ||
27 | |||
28 | static int nvidia_bl_get_level_brightness(struct nvidia_par *par, | 26 | static int nvidia_bl_get_level_brightness(struct nvidia_par *par, |
29 | int level) | 27 | int level) |
30 | { | 28 | { |
@@ -119,7 +117,7 @@ void nvidia_bl_init(struct nvidia_par *par) | |||
119 | 0x534 * FB_BACKLIGHT_MAX / MAX_LEVEL); | 117 | 0x534 * FB_BACKLIGHT_MAX / MAX_LEVEL); |
120 | 118 | ||
121 | bd->props.max_brightness = FB_BACKLIGHT_LEVELS - 1; | 119 | bd->props.max_brightness = FB_BACKLIGHT_LEVELS - 1; |
122 | bd->props.brightness = nvidia_bl_data.max_brightness; | 120 | bd->props.brightness = bd->props.max_brightness; |
123 | bd->props.power = FB_BLANK_UNBLANK; | 121 | bd->props.power = FB_BLANK_UNBLANK; |
124 | backlight_update_status(bd); | 122 | backlight_update_status(bd); |
125 | 123 | ||