Skip to contentSkip to conversation

x86: replace a magic number with a named constant in the VESA boot code

PATCH Applied Michal Januszewski 2 participants 2 messages Oct 5, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: replace a magic number with a named constant in the VESA boot code

Replace a magic number with a named constant in the VESA boot code.

---

arch/x86/boot/video-vesa.c +1 -1
index 401ad99..1e6fe02 100644
@@ -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;
Applied
#1 lore raw

arch/x86/boot/video-vesa.c

Quoted 5 lines · Michal Januszewski

Replace a magic number with a named constant in the VESA boot code.

---

arch/x86/boot/video-vesa.c +0 -0

applied to tip/x86/setup, thanks Michal!

Ingo