summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/output.c
diff options
context:
space:
mode:
authorLaurent Pinchart2018-03-02 02:11:49 +0100
committerTomi Valkeinen2018-09-03 15:13:26 +0200
commit5c718e015a0f1280440f90ebf1c18e2b98a102e4 (patch)
treea96b37cc3c2cbe52c5882a0839c8dbdc1f0c802b /drivers/gpu/drm/omapdrm/dss/output.c
parentdrm/omap: dss: Move DSS mgr ops and private data to dss_device (diff)
downloadkernel-qcow2-linux-5c718e015a0f1280440f90ebf1c18e2b98a102e4.tar.gz
kernel-qcow2-linux-5c718e015a0f1280440f90ebf1c18e2b98a102e4.tar.xz
kernel-qcow2-linux-5c718e015a0f1280440f90ebf1c18e2b98a102e4.zip
drm/omap: dss: Modify omapdss_find_output_from_display() to return channel
The omapdss_find_output_from_display() function is only used to retrieve the dispc channel corresponding to the display. Return the dispc channel directly, and rename the function to omapdss_device_get_dispc_channel() to match its new purpose. The dssdev->id check is removed as the dssdev is guaranteed to be an output and have a non-zero id, as proved by the lack of crash despite the caller never checking the returned pointer before dereferencing it. As the function is not specific to outputs anymore, move it from output.c to base.c. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/output.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/output.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/output.c b/drivers/gpu/drm/omapdrm/dss/output.c
index a5df6eed4aef..191b2e801257 100644
--- a/drivers/gpu/drm/omapdrm/dss/output.c
+++ b/drivers/gpu/drm/omapdrm/dss/output.c
@@ -88,18 +88,6 @@ err:
}
EXPORT_SYMBOL(omapdss_output_unset_device);
-struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device *dssdev)
-{
- while (dssdev->src)
- dssdev = dssdev->src;
-
- if (dssdev->id != 0)
- return omapdss_device_get(dssdev);
-
- return NULL;
-}
-EXPORT_SYMBOL(omapdss_find_output_from_display);
-
int dss_install_mgr_ops(struct dss_device *dss,
const struct dss_mgr_ops *mgr_ops,
struct omap_drm_private *priv)