Replace a magic number with a named constant in the VESA boot code.
Unified · Split
| @@ -224,7 +224,7 @@ static void vesa_store_pm_info(void) · 223 unmodified lines | |||
| 224 | static void vesa_store_mode_params_graphics(void) | 224 | static void vesa_store_mode_params_graphics(void) |
| 225 | { | 225 | { |
| 226 | /* Tell the kernel we're in VESA graphics mode */ | 226 | /* Tell the kernel we're in VESA graphics mode */ |
| 227 | boot_params.screen_info.orig_video_isVGA = 0x23; | 227 | boot_params.screen_info.orig_video_isVGA = VIDEO_TYPE_VLFB; |
| 228 | 228 | ||
| 229 | /* Mode parameters */ | 229 | /* Mode parameters */ |
| 230 | boot_params.screen_info.vesa_attributes = vminfo.mode_attr; | 230 | boot_params.screen_info.vesa_attributes = vminfo.mode_attr; |