]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/mst: introduce to_primary_encoder() and to_primary_dp()
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 Nov 2024 11:10:39 +0000 (13:10 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 12 Nov 2024 15:22:48 +0000 (17:22 +0200)
commitca743f5faca00a00ba17b115db1f1cea5930f622
tree4fe8ae10d7251a1a3d6eaefcc01f9bd77a5cfdaa
parent45f9b3e8cb43bdb9c0cf430199ed19ba2fc0252d
drm/i915/mst: introduce to_primary_encoder() and to_primary_dp()

Add helpers to_primary_encoder() and to_primary_dp() to convert fake MST
encoder pointers to primary encoder and DP pointers, respectively, and
use them.

The main point is to highlight the primary encoder and DP usage. Very
few places actually need the struct intel_dp_mst_encoder pointer, or the
primary struct intel_digital_port, so ditch them where possible for
clarity.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ff8786c04bae053055783f720f89a4d9f9815c70.1731409802.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dp_mst.c