* [PATCH 1/3] fbdev: sh-mobile: restore display size configuration
@ 2010-12-21 10:46 Guennadi Liakhovetski
2010-12-22 7:28 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Guennadi Liakhovetski @ 2010-12-21 10:46 UTC (permalink / raw)
To: linux-fbdev
An earlier patch replaced open-coded video-mode configuration from
platform data by a call to fb_videomode_to_var(), thereby setting
ofdisplay sizes have been accidentally lost. Restore them.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index b02d97a..257ed0c 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -1238,12 +1238,14 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev)
mode = &default_720p;
num_cfg = 1;
} else {
- num_cfg = ch->cfg.num_cfg;
+ num_cfg = cfg->num_cfg;
}
fb_videomode_to_modelist(mode, num_cfg, &info->modelist);
fb_videomode_to_var(var, mode);
+ var->width = cfg->lcd_size_cfg.width;
+ var->height = cfg->lcd_size_cfg.height;
/* Default Y virtual resolution is 2x panel size */
var->yres_virtual = var->yres * 2;
var->activate = FB_ACTIVATE_NOW;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] fbdev: sh-mobile: restore display size configuration
2010-12-21 10:46 [PATCH 1/3] fbdev: sh-mobile: restore display size configuration Guennadi Liakhovetski
@ 2010-12-22 7:28 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2010-12-22 7:28 UTC (permalink / raw)
To: linux-fbdev
On Tue, Dec 21, 2010 at 11:46:26AM +0100, Guennadi Liakhovetski wrote:
> An earlier patch replaced open-coded video-mode configuration from
> platform data by a call to fb_videomode_to_var(), thereby setting
> ofdisplay sizes have been accidentally lost. Restore them.
On Tue, Dec 21, 2010 at 11:46:35AM +0100, Guennadi Liakhovetski wrote:
> Monitor EDID contains information about physical display sizes. Retrieve
> it and propagate to the framebuffer driver.
Both applied for .37, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-22 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21 10:46 [PATCH 1/3] fbdev: sh-mobile: restore display size configuration Guennadi Liakhovetski
2010-12-22 7:28 ` Paul Mundt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).