aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/overlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/dss/overlay.c')
-rw-r--r--drivers/video/omap2/dss/overlay.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c
index 52455a0609cb..0f799e2d91bb 100644
--- a/drivers/video/omap2/dss/overlay.c
+++ b/drivers/video/omap2/dss/overlay.c
@@ -38,6 +38,11 @@
38static int num_overlays; 38static int num_overlays;
39static struct omap_overlay *overlays; 39static struct omap_overlay *overlays;
40 40
41static inline struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl)
42{
43 return ovl->manager ? ovl->manager->device : NULL;
44}
45
41int omap_dss_get_num_overlays(void) 46int omap_dss_get_num_overlays(void)
42{ 47{
43 return num_overlays; 48 return num_overlays;
@@ -94,6 +99,7 @@ void dss_init_overlays(struct platform_device *pdev)
94 ovl->set_overlay_info = &dss_ovl_set_info; 99 ovl->set_overlay_info = &dss_ovl_set_info;
95 ovl->get_overlay_info = &dss_ovl_get_info; 100 ovl->get_overlay_info = &dss_ovl_get_info;
96 ovl->wait_for_go = &dss_mgr_wait_for_go_ovl; 101 ovl->wait_for_go = &dss_mgr_wait_for_go_ovl;
102 ovl->get_device = &dss_ovl_get_device;
97 103
98 ovl->caps = dss_feat_get_overlay_caps(ovl->id); 104 ovl->caps = dss_feat_get_overlay_caps(ovl->id);
99 ovl->supported_modes = 105 ovl->supported_modes =