drm/i915/ddi: split up intel_ddi_read_func_ctl() by output type
authorJani Nikula <jani.nikula@intel.com>
Wed, 20 Nov 2024 12:43:17 +0000 (14:43 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 22 Nov 2024 11:36:59 +0000 (13:36 +0200)
commit1013ed6a62d320bcc078ab36d400baf86e343a91
tree9890fa1e57f99334ac03520aa57b0e4a29b4b632
parentf64a06540cfc80dcb8671bfa2d07d9e20270ccd6
drm/i915/ddi: split up intel_ddi_read_func_ctl() by output type

The function has become quite long, and the switch-case statement quite
complex with the fallthrougs. Simplify by splitting to individual
functions and an if-ladder.

This highlights how TRANS_DDI_MODE_SELECT_FDI_OR_128B132B works on
different platforms.

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