drm/amd/display: Return drm_connector from find_first_crtc_matching_connector

[ Upstream commit 748b091d64 ]

[WHY]
We will be dealing with two types of connector: amdgpu_dm_connector
and drm_writeback_connector.

[HOW]
We want to find both and then cast to the appriopriate type afterwards.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: dbf5d3d029 ("drm/amd/display: Check writeback connectors in create_validate_stream_for_sink")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Harry Wentland 2023-12-01 06:25:26 -07:00 • committed by Greg Kroah-Hartman
commit 87b2b27e4d
3 changed files with 9 additions and 5 deletions