]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
viafb: fill xres and yres
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 19 Oct 2011 12:59:50 +0000 (12:59 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 10 Feb 2012 19:28:39 +0000 (19:28 +0000)
This patch fills xres and yres in var which is required when a
temporary var is genereated when viafb_SAMM_ON is set and
viafb_dual_fb is not set. It also removes an obsolete comment.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/hw.c

index 08c10366f75a9cfe7e505dd3ebcf2f0703245463..399d50754c435180e1c8dbb42a76ebd8fc941568 100644 (file)
@@ -2125,7 +2125,6 @@ void viafb_set_dpa_gfx(int output_interface, struct GFX_DPA_SETTING\
        }
 }
 
-/*According var's xres, yres fill var's other timing information*/
 void viafb_fill_var_timing_info(struct fb_var_screeninfo *var,
        struct crt_mode_table *mode)
 {
@@ -2134,6 +2133,8 @@ void viafb_fill_var_timing_info(struct fb_var_screeninfo *var,
        crt_reg = mode->crtc;
        var->pixclock = 1000000000 / (crt_reg.hor_total * crt_reg.ver_total)
                * 1000 / mode->refresh_rate;
+       var->xres = crt_reg.hor_addr;
+       var->yres = crt_reg.ver_addr;
        var->left_margin =
            crt_reg.hor_total - (crt_reg.hor_sync_start + crt_reg.hor_sync_end);
        var->right_margin = crt_reg.hor_sync_start - crt_reg.hor_addr;