diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2012-08-13 07:56:46 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2012-11-21 09:49:59 -0500 |
commit | 856e8dfe6efed7cf35bc6bf827f030a164bee083 (patch) | |
tree | 7f713394f95de08390a92a3898c249ad1e17ac51 | |
parent | bf10a53765b4435a5349a92a5a51753902ed86f1 (diff) |
fbdev: sh_mobile_lcdc: Get display dimensions from the channel structure
Get the display dimensions directly from the channel structure instead
of recomputing them from the monitor specs or accessing the platform
data.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index bccfd7eff39b..7375dbf08c78 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c | |||
@@ -586,8 +586,8 @@ static int sh_mobile_lcdc_display_notify(struct sh_mobile_lcdc_chan *ch, | |||
586 | * Just turn on, if we run a resume here, the | 586 | * Just turn on, if we run a resume here, the |
587 | * logo disappears. | 587 | * logo disappears. |
588 | */ | 588 | */ |
589 | info->var.width = monspec->max_x * 10; | 589 | info->var.width = ch->display.width; |
590 | info->var.height = monspec->max_y * 10; | 590 | info->var.height = ch->display.height; |
591 | sh_mobile_lcdc_display_on(ch); | 591 | sh_mobile_lcdc_display_on(ch); |
592 | } else { | 592 | } else { |
593 | /* New monitor or have to wake up */ | 593 | /* New monitor or have to wake up */ |
@@ -2248,8 +2248,8 @@ sh_mobile_lcdc_channel_fb_init(struct sh_mobile_lcdc_chan *ch, | |||
2248 | */ | 2248 | */ |
2249 | var = &info->var; | 2249 | var = &info->var; |
2250 | fb_videomode_to_var(var, mode); | 2250 | fb_videomode_to_var(var, mode); |
2251 | var->width = ch->cfg->panel_cfg.width; | 2251 | var->width = ch->display.width; |
2252 | var->height = ch->cfg->panel_cfg.height; | 2252 | var->height = ch->display.height; |
2253 | var->xres_virtual = ch->xres_virtual; | 2253 | var->xres_virtual = ch->xres_virtual; |
2254 | var->yres_virtual = ch->yres_virtual; | 2254 | var->yres_virtual = ch->yres_virtual; |
2255 | var->activate = FB_ACTIVATE_NOW; | 2255 | var->activate = FB_ACTIVATE_NOW; |