drm/i915/dp: Move compressed bpp check with 420 format inside the helper
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 17 Aug 2023 14:24:43 +0000 (19:54 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Fri, 18 Aug 2023 04:12:14 +0000 (09:42 +0530)
commit3a4b4809c8cca52d55e81afcdd879206ca287daf
tree1da89ce1b9f47096427f96683571889525382eb5
parenta1476c2a9715b69b3551b8379cb866bd0639c6e7
drm/i915/dp: Move compressed bpp check with 420 format inside the helper

Move the check for limiting compressed bits_per_pixel for 420,422
formats in the helper to compute bits_per_pixel.

v2: Fix typo in commit message. (Ankit)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230817142459.89764-3-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c