]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
drivers/video: use vlfb_info consistently
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 13 May 2019 08:14:02 +0000 (10:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 May 2019 08:14:02 +0000 (10:14 +0200)
vlfb_info is an alias for vga_console_info.u.vesa_lfb, so this change is
purely cosmetic. But using the same name helps reading the code.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/video/vesa.c

index c92497e0bc86dddfa3a893bb1a5a9cab63dbb609..26d4962b0e9f04dbbc98935e387f8ca92ceb384c 100644 (file)
@@ -44,7 +44,7 @@ void __init vesa_early_init(void)
 {
     unsigned int vram_vmode;
 
-    vga_compat = !(vga_console_info.u.vesa_lfb.gbl_caps & 2);
+    vga_compat = !(vlfb_info.gbl_caps & 2);
 
     if ( (vlfb_info.bits_per_pixel < 8) || (vlfb_info.bits_per_pixel > 32) )
         return;