aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/sh_mobile_lcdcfb.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-09-03 03:20:04 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-09-14 04:22:38 -0400
commit44432407d9f5e4b2e56c7eccb65d98cad4bba191 (patch)
treefdd88fc9bd5a1473e611e87958d2115b02631ac8 /drivers/video/sh_mobile_lcdcfb.c
parent01ac25b59f08c0bb56dd301f024eabd542205a42 (diff)
fbdev: sh_mobile_lcdcfb: Support multiple video modes in platform data
This is a preparation for HDMI hotplug support. This patch just moves all platform defined video modes for the sh_mobile_lcdcfb driver to separate arrays and switches all users to use element 0 of that array, so, this patch doesn't introduce any functional changes and as such should not cause any regressions. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/sh_mobile_lcdcfb.c')
-rw-r--r--drivers/video/sh_mobile_lcdcfb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index e4f6012fe4e3..ce3ed4bc991f 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -989,8 +989,8 @@ static int sh_mobile_lcdc_notify(struct notifier_block *nb,
989 int ret; 989 int ret;
990 990
991 /* Can we handle this display? */ 991 /* Can we handle this display? */
992 if (var->xres > ch->cfg.lcd_cfg.xres || 992 if (var->xres > ch->cfg.lcd_cfg[0].xres ||
993 var->yres > ch->cfg.lcd_cfg.yres) 993 var->yres > ch->cfg.lcd_cfg[0].yres)
994 return -ENOMEM; 994 return -ENOMEM;
995 995
996 /* Add to the modelist */ 996 /* Add to the modelist */
@@ -1115,7 +1115,7 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev)
1115 1115
1116 info = ch->info; 1116 info = ch->info;
1117 var = &info->var; 1117 var = &info->var;
1118 lcd_cfg = &cfg->lcd_cfg; 1118 lcd_cfg = &cfg->lcd_cfg[0];
1119 info->fbops = &sh_mobile_lcdc_ops; 1119 info->fbops = &sh_mobile_lcdc_ops;
1120 fb_videomode_to_var(var, lcd_cfg); 1120 fb_videomode_to_var(var, lcd_cfg);
1121 /* Default Y virtual resolution is 2x panel size */ 1121 /* Default Y virtual resolution is 2x panel size */
@@ -1187,8 +1187,8 @@ static int __devinit sh_mobile_lcdc_probe(struct platform_device *pdev)
1187 pdev->name, 1187 pdev->name,
1188 (ch->cfg.chan == LCDC_CHAN_MAINLCD) ? 1188 (ch->cfg.chan == LCDC_CHAN_MAINLCD) ?
1189 "mainlcd" : "sublcd", 1189 "mainlcd" : "sublcd",
1190 (int) ch->cfg.lcd_cfg.xres, 1190 (int) ch->cfg.lcd_cfg[0].xres,
1191 (int) ch->cfg.lcd_cfg.yres, 1191 (int) ch->cfg.lcd_cfg[0].yres,
1192 ch->cfg.bpp); 1192 ch->cfg.bpp);
1193 1193
1194 /* deferred io mode: disable clock to save power */ 1194 /* deferred io mode: disable clock to save power */