drm/i915/display: add intel_encoder_is_*() and _to_*() functions
authorJani Nikula <jani.nikula@intel.com>
Wed, 20 Mar 2024 15:48:01 +0000 (17:48 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 21 Mar 2024 12:10:15 +0000 (14:10 +0200)
commitba28989dcb9a547a721772497196104df48470ce
tree3d909fb6108a4fe3f23dc0c150601102d0583b0b
parent0a099232d25444cd08954eaf51e9a969ba087762
drm/i915/display: add intel_encoder_is_*() and _to_*() functions

Add a number of encoder based functions to check if the port/phy of the
encoder is of a certain type, or to convert to phy or tc_port. Initially
these are just wrappers around the existing functions, but they can be
improved to use VBT data or use some cached info in the future.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7b2d350ee42883f2784030c649d16f983bd407bd.1710949619.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_cx0_phy.c
drivers/gpu/drm/i915/display/intel_cx0_phy.h
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h