* [PATCH] x86: replace a magic number with a named constant in the VESA boot code
@ 2008-10-05 10:16 Michal Januszewski
2008-10-05 16:39 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Michal Januszewski @ 2008-10-05 10:16 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-fbdev-devel
Replace a magic number with a named constant in the VESA boot code.
Signed-off-by: Michal Januszewski <spock@gentoo.org>
---
diff --git a/arch/x86/boot/video-vesa.c b/arch/x86/boot/video-vesa.c
index 401ad99..1e6fe02 100644
--- a/arch/x86/boot/video-vesa.c
+++ b/arch/x86/boot/video-vesa.c
@@ -224,7 +224,7 @@ static void vesa_store_pm_info(void)
static void vesa_store_mode_params_graphics(void)
{
/* Tell the kernel we're in VESA graphics mode */
- boot_params.screen_info.orig_video_isVGA = 0x23;
+ boot_params.screen_info.orig_video_isVGA = VIDEO_TYPE_VLFB;
/* Mode parameters */
boot_params.screen_info.vesa_attributes = vminfo.mode_attr;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] x86: replace a magic number with a named constant in the VESA boot code
2008-10-05 10:16 [PATCH] x86: replace a magic number with a named constant in the VESA boot code Michal Januszewski
@ 2008-10-05 16:39 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-10-05 16:39 UTC (permalink / raw)
To: Michal Januszewski
Cc: linux-kernel, linux-fbdev-devel, Thomas Gleixner, H. Peter Anvin
* Michal Januszewski <spock@gentoo.org> wrote:
> Replace a magic number with a named constant in the VESA boot code.
>
> Signed-off-by: Michal Januszewski <spock@gentoo.org>
> ---
> diff --git a/arch/x86/boot/video-vesa.c b/arch/x86/boot/video-vesa.c
applied to tip/x86/setup, thanks Michal!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-05 16:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-05 10:16 [PATCH] x86: replace a magic number with a named constant in the VESA boot code Michal Januszewski
2008-10-05 16:39 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).