summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/apply.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/apply.c
parent97f01b3a2ed6d46132bf4e2d237c27846e7b260a (diff)
downloadop-kernel-dev-794bc4eefa10fbc80e6ad29de1bc42424efde608.zip
op-kernel-dev-794bc4eefa10fbc80e6ad29de1bc42424efde608.tar.gz
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/apply.c')
-rw-r--r--drivers/video/omap2/dss/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c
index 3cc4726..417b286 100644
--- a/drivers/video/omap2/dss/apply.c
+++ b/drivers/video/omap2/dss/apply.c
@@ -1464,7 +1464,7 @@ int dss_ovl_enable(struct omap_overlay *ovl)
goto err1;
}
- if (ovl->manager == NULL || ovl->manager->device == NULL) {
+ if (ovl->get_device(ovl) == NULL) {
r = -EINVAL;
goto err1;
}
@@ -1514,7 +1514,7 @@ int dss_ovl_disable(struct omap_overlay *ovl)
goto err;
}
- if (ovl->manager == NULL || ovl->manager->device == NULL) {
+ if (ovl->get_device(ovl) == NULL) {
r = -EINVAL;
goto err;
}
OpenPOWER on IntegriCloud