drm/rockchip: add function to check if endpoint is a subdriver
authorHeiko Stuebner <heiko@sntech.de>
Thu, 30 Aug 2018 21:12:05 +0000 (23:12 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 5 Sep 2018 10:24:25 +0000 (12:24 +0200)
commit3880f62e476df5fb6fe4ac3ebd2442a9ce306c6b
tree26d012f5d8a64edce98a8707cbed3c6cacd28844
parent633ba1e086e1abbeef1ffd899911de8cf3987d9f
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
drivers/gpu/drm/rockchip/rockchip_drm_drv.c
drivers/gpu/drm/rockchip/rockchip_drm_drv.h