aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/omapfb/omapfb-main.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-01-11 09:12:31 -0500
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-24 07:31:28 -0500
commit446f7bff703f5f82560afde90fb22b7a1d366bbc (patch)
tree6ed3d56bbe170c8491e77734822fbcd8f07fbe0c /drivers/video/omap2/omapfb/omapfb-main.c
parent225b650d41e7cdbf5cd322a461b04493caabed09 (diff)
OMAP: DSS2: move set/get_update_mode()
Move set/get_update_mode() 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/omapfb-main.c')
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index b0adfb5915c8..c720842341b2 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -1226,8 +1226,8 @@ static int omapfb_blank(int blank, struct fb_info *fbi)
1226 if (display->resume) 1226 if (display->resume)
1227 r = display->resume(display); 1227 r = display->resume(display);
1228 1228
1229 if (r == 0 && display->get_update_mode && 1229 if (r == 0 && display->driver->get_update_mode &&
1230 display->get_update_mode(display) == 1230 display->driver->get_update_mode(display) ==
1231 OMAP_DSS_UPDATE_MANUAL) 1231 OMAP_DSS_UPDATE_MANUAL)
1232 do_update = 1; 1232 do_update = 1;
1233 1233
@@ -2193,6 +2193,7 @@ static int omapfb_probe(struct platform_device *pdev)
2193 } 2193 }
2194 2194
2195 if (def_display) { 2195 if (def_display) {
2196 struct omap_dss_driver *dssdrv = def_display->driver;
2196#ifndef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE 2197#ifndef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE
2197 u16 w, h; 2198 u16 w, h;
2198#endif 2199#endif
@@ -2206,25 +2207,25 @@ static int omapfb_probe(struct platform_device *pdev)
2206 /* set the update mode */ 2207 /* set the update mode */
2207 if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) { 2208 if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) {
2208#ifdef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE 2209#ifdef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE
2209 if (def_display->driver->enable_te) 2210 if (dssdrv->enable_te)
2210 def_display->driver->enable_te(def_display, 1); 2211 dssdrv->enable_te(def_display, 1);
2211 if (def_display->set_update_mode) 2212 if (dssdrv->set_update_mode)
2212 def_display->set_update_mode(def_display, 2213 dssdrv->set_update_mode(def_display,
2213 OMAP_DSS_UPDATE_AUTO); 2214 OMAP_DSS_UPDATE_AUTO);
2214#else /* MANUAL_UPDATE */ 2215#else /* MANUAL_UPDATE */
2215 if (def_display->driver->enable_te) 2216 if (dssdrv->enable_te)
2216 def_display->driver->enable_te(def_display, 0); 2217 dssdrv->enable_te(def_display, 0);
2217 if (def_display->set_update_mode) 2218 if (dssdrv->set_update_mode)
2218 def_display->set_update_mode(def_display, 2219 dssdrv->set_update_mode(def_display,
2219 OMAP_DSS_UPDATE_MANUAL); 2220 OMAP_DSS_UPDATE_MANUAL);
2220 2221
2221 def_display->driver->get_resolution(def_display, 2222 dssdrv->get_resolution(def_display,
2222 &w, &h); 2223 &w, &h);
2223 def_display->update(def_display, 0, 0, w, h); 2224 def_display->update(def_display, 0, 0, w, h);
2224#endif 2225#endif
2225 } else { 2226 } else {
2226 if (def_display->set_update_mode) 2227 if (dssdrv->set_update_mode)
2227 def_display->set_update_mode(def_display, 2228 dssdrv->set_update_mode(def_display,
2228 OMAP_DSS_UPDATE_AUTO); 2229 OMAP_DSS_UPDATE_AUTO);
2229 } 2230 }
2230 } 2231 }