]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: Make intel_dp_output_format() usable for "4:2:0 also" modes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 22 Mar 2022 12:00:10 +0000 (14:00 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 Apr 2022 08:16:26 +0000 (11:16 +0300)
commit4dcbdea50ee427022215ceb6d6e574cdabdff6fd
tree33d79b812ba8a4749651aa6b52324d087cc8a284
parenta116d83c782418b67273ee5f6b07bfd215972289
drm/i915/dp: Make intel_dp_output_format() usable for "4:2:0 also" modes

Hoist the drm_mode_is_420_only() from intel_dp_output_format()
into the caller. This will allow intel_dp_output_format() to be
reused for "4:2:0 also" modes.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220322120015.28074-8-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
drivers/gpu/drm/i915/display/intel_dp.c