diff options
| author | Jani Nikula <[email protected]> | 2021-10-06 10:16:18 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2021-10-08 10:14:25 +0000 |
| commit | a94a6d76c9843c3577078ec297caf0d76b6fa12e (patch) | |
| tree | a108a8e7443d094283626d8e9f15ef3a5fce28d3 /drivers/gpu/drm/i915/display/intel_dp_mst.h | |
| parent | drm/i915/dp: take LTTPR into account in 128b/132b rates (diff) | |
| download | kernel-a94a6d76c9843c3577078ec297caf0d76b6fa12e.tar.gz kernel-a94a6d76c9843c3577078ec297caf0d76b6fa12e.zip | |
drm/i915/mst: abstract intel_dp_mst_source_support()
Add a function for checking source MST support. Drop intel_dp->can_mst
and use intel_dp->mst_mgr.cbs to indicate the same. It's the single
point of truth without additional state variables. In code, "source
support" is also self-documenting as opposed to the vague "can mst".
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.h')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp_mst.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.h b/drivers/gpu/drm/i915/display/intel_dp_mst.h index 6afda4e86b3c..f7301de6cdfb 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_mst.h +++ b/drivers/gpu/drm/i915/display/intel_dp_mst.h @@ -8,13 +8,15 @@ #include <linux/types.h> -struct intel_digital_port; struct intel_crtc_state; +struct intel_digital_port; +struct intel_dp; int intel_dp_mst_encoder_init(struct intel_digital_port *dig_port, int conn_id); void intel_dp_mst_encoder_cleanup(struct intel_digital_port *dig_port); int intel_dp_mst_encoder_active_links(struct intel_digital_port *dig_port); bool intel_dp_mst_is_master_trans(const struct intel_crtc_state *crtc_state); bool intel_dp_mst_is_slave_trans(const struct intel_crtc_state *crtc_state); +bool intel_dp_mst_source_support(struct intel_dp *intel_dp); #endif /* __INTEL_DP_MST_H__ */ |
