drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_detect()
authorLyude Paul <lyude@redhat.com>
Fri, 23 Apr 2021 18:43:00 +0000 (14:43 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 27 Apr 2021 22:43:43 +0000 (18:43 -0400)
commit92ea222015f17203b43dd59b9541dcd26811bf4c
tree9b316037b6018bd0038118652e48e17586b083d5
parent427e59d3b5d3cbfe75034002ae4580bf51a003c3
drm/dp_dual_mode: Pass drm_device to drm_dp_dual_mode_detect()

Since we're about to be using drm_dbg_*() throughout the DP helpers, we'll
need to be able to access the DRM device in the dual mode DP helpers as
well. Note however that since drm_dp_dual_mode_detect() can be called with
DDC adapters that aren't part of a drm_dp_aux struct, we need to pass down
the drm_device to these functions instead of using drm_dp_aux.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210423184309.207645-9-lyude@redhat.com
Reviewed-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_dual_mode_helper.c
drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/display/intel_lspcon.c
include/drm/drm_dp_dual_mode_helper.h