diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-01-11 08:11:01 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-24 07:31:27 -0500 |
commit | 225b650d41e7cdbf5cd322a461b04493caabed09 (patch) | |
tree | dcd6b3f83036eeb13777f018aca4cf8273d087c5 /drivers/video/omap2/omapfb | |
parent | a269950405ab17ce3a604ddcd939709a4a7a747c (diff) |
OMAP: DSS2: move enable/get_te()
Move enable/get_te() 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.c | 5 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 8 |
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 6deabb94fd31..cb2e3432618d 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c | |||
@@ -732,12 +732,13 @@ int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd, unsigned long arg) | |||
732 | break; | 732 | break; |
733 | } | 733 | } |
734 | 734 | ||
735 | if (!display->enable_te) { | 735 | if (!display->driver->enable_te) { |
736 | r = -ENODEV; | 736 | r = -ENODEV; |
737 | break; | 737 | break; |
738 | } | 738 | } |
739 | 739 | ||
740 | r = display->enable_te(display, !!p.tearsync_info.enabled); | 740 | r = display->driver->enable_te(display, |
741 | !!p.tearsync_info.enabled); | ||
741 | 742 | ||
742 | break; | 743 | break; |
743 | } | 744 | } |
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 216ed80293b8..b0adfb5915c8 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -2206,14 +2206,14 @@ static int omapfb_probe(struct platform_device *pdev) | |||
2206 | /* set the update mode */ | 2206 | /* set the update mode */ |
2207 | if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) { | 2207 | if (def_display->caps & OMAP_DSS_DISPLAY_CAP_MANUAL_UPDATE) { |
2208 | #ifdef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE | 2208 | #ifdef CONFIG_FB_OMAP2_FORCE_AUTO_UPDATE |
2209 | if (def_display->enable_te) | 2209 | if (def_display->driver->enable_te) |
2210 | def_display->enable_te(def_display, 1); | 2210 | def_display->driver->enable_te(def_display, 1); |
2211 | if (def_display->set_update_mode) | 2211 | if (def_display->set_update_mode) |
2212 | def_display->set_update_mode(def_display, | 2212 | def_display->set_update_mode(def_display, |
2213 | OMAP_DSS_UPDATE_AUTO); | 2213 | OMAP_DSS_UPDATE_AUTO); |
2214 | #else /* MANUAL_UPDATE */ | 2214 | #else /* MANUAL_UPDATE */ |
2215 | if (def_display->enable_te) | 2215 | if (def_display->driver->enable_te) |
2216 | def_display->enable_te(def_display, 0); | 2216 | def_display->driver->enable_te(def_display, 0); |
2217 | if (def_display->set_update_mode) | 2217 | if (def_display->set_update_mode) |
2218 | def_display->set_update_mode(def_display, | 2218 | def_display->set_update_mode(def_display, |
2219 | OMAP_DSS_UPDATE_MANUAL); | 2219 | OMAP_DSS_UPDATE_MANUAL); |