diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-23 08:23:42 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-17 07:00:41 -0400 |
commit | e724366498ead17579686f7ad83235f911a9c4f7 (patch) | |
tree | 8b59f1c0cb2c7bf8483d4c89d6a08931bd20908a | |
parent | 679852dbee81c81c1165fe08b6cefd28252b463c (diff) |
OMAPDSS: clean up dss_[ovl|mgr]_get_device()
Minor cleanup for the dss_[ovl|mgr]_get_device() functions to make them
more readable.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/omap2/dss/apply.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c index a4b356a9780d..b84bd99ef910 100644 --- a/drivers/video/omap2/dss/apply.c +++ b/drivers/video/omap2/dss/apply.c | |||
@@ -420,16 +420,14 @@ static void wait_pending_extra_info_updates(void) | |||
420 | DSSWARN("timeout in wait_pending_extra_info_updates\n"); | 420 | DSSWARN("timeout in wait_pending_extra_info_updates\n"); |
421 | } | 421 | } |
422 | 422 | ||
423 | static inline struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl) | 423 | static struct omap_dss_device *dss_mgr_get_device(struct omap_overlay_manager *mgr) |
424 | { | 424 | { |
425 | return ovl->manager ? | 425 | return mgr->output ? mgr->output->device : NULL; |
426 | (ovl->manager->output ? ovl->manager->output->device : NULL) : | ||
427 | NULL; | ||
428 | } | 426 | } |
429 | 427 | ||
430 | static inline struct omap_dss_device *dss_mgr_get_device(struct omap_overlay_manager *mgr) | 428 | static struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl) |
431 | { | 429 | { |
432 | return mgr->output ? mgr->output->device : NULL; | 430 | return ovl->manager ? dss_mgr_get_device(ovl->manager) : NULL; |
433 | } | 431 | } |
434 | 432 | ||
435 | static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr) | 433 | static int dss_mgr_wait_for_vsync(struct omap_overlay_manager *mgr) |