OMAPDSS: clean up dss_[ovl|mgr]_get_device()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 23 Apr 2013 12:23:42 +0000 (15:23 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 17 Jun 2013 11:00:41 +0000 (14:00 +0300)
Minor cleanup for the dss_[ovl|mgr]_get_device() functions to make them
more readable.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c

index a4b356a9780d305f37673743f40eb5cbe61942a9..b84bd99ef91076a96a553ecded04e0f7f5f55c93 100644 (file)
@@ -420,16 +420,14 @@ static void wait_pending_extra_info_updates(void)
                DSSWARN("timeout in wait_pending_extra_info_updates\n");
 }
 
-static inline struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl)
+static struct omap_dss_device *dss_mgr_get_device(struct omap_overlay_manager *mgr)
 {
-       return ovl->manager ?
-               (ovl->manager->output ? ovl->manager->output->device : NULL) :
-               NULL;
+       return mgr->output ? mgr->output->device : NULL;
 }
 
-static inline struct omap_dss_device *dss_mgr_get_device(struct omap_overlay_manager *mgr)
+static struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl)
 {
-       return mgr->output ? mgr->output->device : NULL;
+       return ovl->manager ? dss_mgr_get_device(ovl->manager) : NULL;
 }
 
 static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr)
This page took 0.025019 seconds and 5 git commands to generate.