drm/i915: Extract intel_dp_output_format()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Sep 2020 21:43:33 +0000 (00:43 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Sep 2020 16:47:27 +0000 (19:47 +0300)
commit773bd825c4cc0e0461c8f227e813fb7e9c13d2b0
treec5d20cf26fc6b0fd482bf4b54b6d3b3f33c6fa79
parentbff88b1c8ffddf32da75a1f7e8d10c93aaa26131
drm/i915: Extract intel_dp_output_format()

Refactor the output_format calculation into a helper so that
we can reuse it for mode validation as well.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200917214335.3569-1-ville.syrjala@linux.intel.com
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
drivers/gpu/drm/i915/display/intel_dp.c