summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/dss-of.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-03-01 23:35:55 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-03 16:13:26 +0300
commite10bd354ad79d2772842300c85ffd1a49722cfae (patch)
treea12480a156390a7c2bb1d418041f73165f1c88d8 /drivers/gpu/drm/omapdrm/dss/dss-of.c
parenta7e82a67c1d7b0be6c195a7c4cf2548fa873c056 (diff)
downloadlinux-e10bd354ad79d2772842300c85ffd1a49722cfae.tar.gz
linux-e10bd354ad79d2772842300c85ffd1a49722cfae.tar.bz2
linux-e10bd354ad79d2772842300c85ffd1a49722cfae.zip
drm/omap: dss: Allow looking up any device by port
The omap_dss_find_output_by_port() function looks up an omap_dss_device by port from the list of devices registered as outputs. In preparation for looking up sinks in addition to sources, allow the function to look up any registered device. Rename it to omap_dss_find_device_by_port() to match its new purpose. 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/dss-of.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dss-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dss-of.c b/drivers/gpu/drm/omapdrm/dss/dss-of.c
index b51af09e9111..771b20db2d98 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss-of.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss-of.c
@@ -74,7 +74,7 @@ omapdss_of_find_source_for_first_ep(struct device_node *node)
return NULL;
/* ... and finally the source. */
- src = omap_dss_find_output_by_port(src_node, port_number);
+ src = omapdss_find_device_by_port(src_node, port_number);
of_node_put(src_node);
return src ? src : ERR_PTR(-EPROBE_DEFER);