diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-10-19 08:59:50 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-02-10 14:28:39 -0500 |
commit | 561c9079ea1de24f8d49c73391811c547d1b2636 (patch) | |
tree | 753f9f96ce4362746b707adff7185718c97db0d2 /drivers/video/via | |
parent | e0e12a9282a879577ba8e35c73ff5d94ae1f50b9 (diff) |
viafb: fill xres and yres
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>
Diffstat (limited to 'drivers/video/via')
-rw-r--r-- | drivers/video/via/hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c index 08c10366f75a..399d50754c43 100644 --- a/drivers/video/via/hw.c +++ b/drivers/video/via/hw.c | |||
@@ -2125,7 +2125,6 @@ void viafb_set_dpa_gfx(int output_interface, struct GFX_DPA_SETTING\ | |||
2125 | } | 2125 | } |
2126 | } | 2126 | } |
2127 | 2127 | ||
2128 | /*According var's xres, yres fill var's other timing information*/ | ||
2129 | void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, | 2128 | void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, |
2130 | struct crt_mode_table *mode) | 2129 | struct crt_mode_table *mode) |
2131 | { | 2130 | { |
@@ -2134,6 +2133,8 @@ void viafb_fill_var_timing_info(struct fb_var_screeninfo *var, | |||
2134 | crt_reg = mode->crtc; | 2133 | crt_reg = mode->crtc; |
2135 | var->pixclock = 1000000000 / (crt_reg.hor_total * crt_reg.ver_total) | 2134 | var->pixclock = 1000000000 / (crt_reg.hor_total * crt_reg.ver_total) |
2136 | * 1000 / mode->refresh_rate; | 2135 | * 1000 / mode->refresh_rate; |
2136 | var->xres = crt_reg.hor_addr; | ||
2137 | var->yres = crt_reg.ver_addr; | ||
2137 | var->left_margin = | 2138 | var->left_margin = |
2138 | crt_reg.hor_total - (crt_reg.hor_sync_start + crt_reg.hor_sync_end); | 2139 | crt_reg.hor_total - (crt_reg.hor_sync_start + crt_reg.hor_sync_end); |
2139 | var->right_margin = crt_reg.hor_sync_start - crt_reg.hor_addr; | 2140 | var->right_margin = crt_reg.hor_sync_start - crt_reg.hor_addr; |