summaryrefslogtreecommitdiff
path: root/drivers/video/omap2/dss/overlay.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2012-09-07 17:44:51 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-09-26 14:58:31 +0300
commit794bc4eefa10fbc80e6ad29de1bc42424efde608 (patch)
treea9823eb2eae3a2cafed62fedf96db07b45d99e33 /drivers/video/omap2/dss/overlay.c
parent97f01b3a2ed6d46132bf4e2d237c27846e7b260a (diff)
downloadlwn-794bc4eefa10fbc80e6ad29de1bc42424efde608.tar.gz
lwn-794bc4eefa10fbc80e6ad29de1bc42424efde608.zip
OMAPDSS: Remove manager->device references
With the introduction of output entities, managers will now connect to outputs. Create helper ops for overlays and managers named get_device. This will abstract away the information on how to get the device from an overlay or an overlay manager. The get_device ops currently retrieve the output via a ovl->manager->device reference. This will be later replaced by ovl->manager->output->device references. Signed-off-by: Archit Taneja <archit@ti.com>
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 @@
static int num_overlays;
static struct omap_overlay *overlays;
+static inline struct omap_dss_device *dss_ovl_get_device(struct omap_overlay *ovl)
+{
+ return ovl->manager ? ovl->manager->device : NULL;
+}
+
int omap_dss_get_num_overlays(void)
{
return num_overlays;
@@ -94,6 +99,7 @@ void dss_init_overlays(struct platform_device *pdev)
ovl->set_overlay_info = &dss_ovl_set_info;
ovl->get_overlay_info = &dss_ovl_get_info;
ovl->wait_for_go = &dss_mgr_wait_for_go_ovl;
+ ovl->get_device = &dss_ovl_get_device;
ovl->caps = dss_feat_get_overlay_caps(ovl->id);
ovl->supported_modes =