aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/modedb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/modedb.c')
-rw-r--r--drivers/video/modedb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 61fc6cd25fc1..5162eab95539 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -716,13 +716,17 @@ void fb_videomode_to_var(struct fb_var_screeninfo *var,
716{ 716{
717 var->xres = mode->xres; 717 var->xres = mode->xres;
718 var->yres = mode->yres; 718 var->yres = mode->yres;
719 var->xres_virtual = mode->xres;
720 var->yres_virtual = mode->yres;
721 var->xoffset = 0;
722 var->yoffset = 0;
719 var->pixclock = mode->pixclock; 723 var->pixclock = mode->pixclock;
720 var->left_margin = mode->left_margin; 724 var->left_margin = mode->left_margin;
721 var->hsync_len = mode->hsync_len;
722 var->vsync_len = mode->vsync_len;
723 var->right_margin = mode->right_margin; 725 var->right_margin = mode->right_margin;
724 var->upper_margin = mode->upper_margin; 726 var->upper_margin = mode->upper_margin;
725 var->lower_margin = mode->lower_margin; 727 var->lower_margin = mode->lower_margin;
728 var->hsync_len = mode->hsync_len;
729 var->vsync_len = mode->vsync_len;
726 var->sync = mode->sync; 730 var->sync = mode->sync;
727 var->vmode = mode->vmode & FB_VMODE_MASK; 731 var->vmode = mode->vmode & FB_VMODE_MASK;
728} 732}