summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2018-08-30 23:12:05 +0200
committerHeiko Stuebner <heiko@sntech.de>2018-09-05 12:24:25 +0200
commit3880f62e476df5fb6fe4ac3ebd2442a9ce306c6b (patch)
tree26d012f5d8a64edce98a8707cbed3c6cacd28844 /drivers/gpu/drm/rockchip/rockchip_drm_drv.h
parent633ba1e086e1abbeef1ffd899911de8cf3987d9f (diff)
downloadlinux-stable-3880f62e476df5fb6fe4ac3ebd2442a9ce306c6b.tar.gz
linux-stable-3880f62e476df5fb6fe4ac3ebd2442a9ce306c6b.tar.bz2
linux-stable-3880f62e476df5fb6fe4ac3ebd2442a9ce306c6b.zip
drm/rockchip: add function to check if endpoint is a subdriver
To be able to have both internal subdrivers and external bridge drivers as output endpoints of vops, add a function to be able to distinguish these. changes in v8: - improved function documentation - better error handling - put calls for node and pdev references changes in v6: - added function to check subdriver vs. bridge Signed-off-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Sandy Huang <hjc@rock-chips.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180830211207.10480-2-heiko@sntech.de
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_drv.h')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.h b/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
index d67ad0a3cf36..21a023a97bb8 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.h
@@ -64,6 +64,7 @@ void rockchip_drm_dma_detach_device(struct drm_device *drm_dev,
struct device *dev);
int rockchip_drm_wait_vact_end(struct drm_crtc *crtc, unsigned int mstimeout);
+int rockchip_drm_endpoint_is_subdriver(struct device_node *ep);
extern struct platform_driver cdn_dp_driver;
extern struct platform_driver dw_hdmi_rockchip_pltfm_driver;
extern struct platform_driver dw_mipi_dsi_driver;