Commit 535a09ad authored by Guido Guenther's avatar Guido Guenther Committed by Linus Torvalds

[PATCH] rivafb: use constants instead of magic values

use (MIN/MAX)_LEVEL and FB_(UN)BLANK instead of the values they are defined to
Signed-off-by: default avatarGuido Guenther <agx@sigxcpu.org>
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6bf1d73d
...@@ -393,8 +393,8 @@ static void riva_bl_init(struct riva_par *par) ...@@ -393,8 +393,8 @@ static void riva_bl_init(struct riva_par *par)
mutex_lock(&info->bl_mutex); mutex_lock(&info->bl_mutex);
info->bl_dev = bd; info->bl_dev = bd;
fb_bl_default_curve(info, 0, fb_bl_default_curve(info, 0,
0x158 * FB_BACKLIGHT_MAX / MAX_LEVEL, MIN_LEVEL * FB_BACKLIGHT_MAX / MAX_LEVEL,
0x534 * FB_BACKLIGHT_MAX / MAX_LEVEL); FB_BACKLIGHT_MAX);
mutex_unlock(&info->bl_mutex); mutex_unlock(&info->bl_mutex);
down(&bd->sem); down(&bd->sem);
...@@ -784,7 +784,7 @@ static void riva_load_video_mode(struct fb_info *info) ...@@ -784,7 +784,7 @@ static void riva_load_video_mode(struct fb_info *info)
NVTRACE_ENTER(); NVTRACE_ENTER();
/* time to calculate */ /* time to calculate */
rivafb_blank(1, info); rivafb_blank(FB_BLANK_NORMAL, info);
bpp = info->var.bits_per_pixel; bpp = info->var.bits_per_pixel;
if (bpp == 16 && info->var.green.length == 5) if (bpp == 16 && info->var.green.length == 5)
...@@ -917,7 +917,7 @@ static void riva_load_video_mode(struct fb_info *info) ...@@ -917,7 +917,7 @@ static void riva_load_video_mode(struct fb_info *info)
par->current_state = newmode; par->current_state = newmode;
riva_load_state(par, &par->current_state); riva_load_state(par, &par->current_state);
par->riva.LockUnlock(&par->riva, 0); /* important for HW cursor */ par->riva.LockUnlock(&par->riva, 0); /* important for HW cursor */
rivafb_blank(0, info); rivafb_blank(FB_BLANK_UNBLANK, info);
NVTRACE_LEAVE(); NVTRACE_LEAVE();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment