aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-01-11 06:54:33 -0500
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-24 07:31:27 -0500
commit96adceceedefff9b849d25ff582bc6f516903994 (patch)
tree5479f5a04deb0d06dc9004ae596ab95adbbb1e2d /drivers/video/omap2/omapfb
parenta2faee84f6d8e35150d60514c6638d223509fa13 (diff)
OMAP: DSS2: move get_resolution()
Move get_resolution() from omap_dss_device to omap_dss_driver. This is part of a larger patch-set, which moves the control from omapdss driver to the display driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/omapfb')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-ioctl.c4
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c
index 36afab30921e..6deabb94fd31 100644
--- a/drivers/video/omap2/omapfb/omapfb-ioctl.c
+++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c
@@ -167,7 +167,7 @@ static int omapfb_update_window_nolock(struct fb_info *fbi,
167 if (w == 0 || h == 0) 167 if (w == 0 || h == 0)
168 return 0; 168 return 0;
169 169
170 display->get_resolution(display, &dw, &dh); 170 display->driver->get_resolution(display, &dw, &dh);
171 171
172 if (x + w > dw || y + h > dh) 172 if (x + w > dw || y + h > dh)
173 return -EINVAL; 173 return -EINVAL;
@@ -752,7 +752,7 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg)
752 break; 752 break;
753 } 753 }
754 754
755 display->get_resolution(display, &xres, &yres); 755 display->driver->get_resolution(display, &xres, &yres);
756 756
757 p.display_info.xres = xres; 757 p.display_info.xres = xres;
758 p.display_info.yres = yres; 758 p.display_info.yres = yres;
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 6a383ab2bef2..212d2efb380c 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -1254,7 +1254,7 @@ exit:
1254 1254
1255 if (r == 0 && do_update && display->update) { 1255 if (r == 0 && do_update && display->update) {
1256 u16 w, h; 1256 u16 w, h;
1257 display->get_resolution(display, &w, &h); 1257 display->driver->get_resolution(display, &w, &h);
1258 1258
1259 r = display->update(display, 0, 0, w, h); 1259 r = display->update(display, 0, 0, w, h);
1260 } 1260 }
@@ -1427,7 +1427,7 @@ static int omapfb_alloc_fbmem_display(struct fb_info *fbi, unsigned long size,
1427 if (!size) { 1427 if (!size) {
1428 u16 w, h; 1428 u16 w, h;
1429 1429
1430 display->get_resolution(display, &w, &h); 1430 display->driver->get_resolution(display, &w, &h);
1431 1431
1432 if (ofbi->rotation_type == OMAP_DSS_ROT_VRFB) { 1432 if (ofbi->rotation_type == OMAP_DSS_ROT_VRFB) {
1433 size = max(omap_vrfb_min_phys_size(w, h, bytespp), 1433 size = max(omap_vrfb_min_phys_size(w, h, bytespp),
@@ -1745,7 +1745,7 @@ static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi)
1745 u16 w, h; 1745 u16 w, h;
1746 int rotation = (var->rotate + ofbi->rotation[0]) % 4; 1746 int rotation = (var->rotate + ofbi->rotation[0]) % 4;
1747 1747
1748 display->get_resolution(display, &w, &h); 1748 display->driver->get_resolution(display, &w, &h);
1749 1749
1750 if (rotation == FB_ROTATE_CW || 1750 if (rotation == FB_ROTATE_CW ||
1751 rotation == FB_ROTATE_CCW) { 1751 rotation == FB_ROTATE_CCW) {
@@ -2197,7 +2197,8 @@ static int omapfb_probe(struct platform_device *pdev)
2197 def_display->set_update_mode(def_display, 2197 def_display->set_update_mode(def_display,
2198 OMAP_DSS_UPDATE_MANUAL); 2198 OMAP_DSS_UPDATE_MANUAL);
2199 2199
2200 def_display->get_resolution(def_display, &w, &h); 2200 def_display->driver->get_resolution(def_display,
2201 &w, &h);
2201 def_display->update(def_display, 0, 0, w, h); 2202 def_display->update(def_display, 0, 0, w, h);
2202#endif 2203#endif
2203 } else { 2204 } else {