mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] rivafb: fix initial brightness
This is the rivafb equivalent of 238576e12f.
It fixes rivafb having a default backlight brightness of 0 (no picture at
all) on a PBook 6,1.
Signed-off-by: Guido Guenther <[email protected]>
Cc: "Antonino A. Daplas" <[email protected]>
Acked-by: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6149dd5cfa
commit
cee9e8c5cb
1 changed files with 1 additions and 3 deletions
|
|
@ -285,8 +285,6 @@ static const struct riva_regs reg_template = {
|
|||
#define MAX_LEVEL 0x534
|
||||
#define LEVEL_STEP ((MAX_LEVEL - MIN_LEVEL) / FB_BACKLIGHT_MAX)
|
||||
|
||||
static struct backlight_properties riva_bl_data;
|
||||
|
||||
static int riva_bl_get_level_brightness(struct riva_par *par,
|
||||
int level)
|
||||
{
|
||||
|
|
@ -372,7 +370,7 @@ static void riva_bl_init(struct riva_par *par)
|
|||
FB_BACKLIGHT_MAX);
|
||||
|
||||
bd->props.max_brightness = FB_BACKLIGHT_LEVELS - 1;
|
||||
bd->props.brightness = riva_bl_data.max_brightness;
|
||||
bd->props.brightness = bd->props.max_brightness;
|
||||
bd->props.power = FB_BLANK_UNBLANK;
|
||||
backlight_update_status(bd);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue