]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Simplify the DSC slice config loop's slices-per-pipe iteration
authorImre Deak <imre.deak@intel.com>
Wed, 14 Jan 2026 16:22:27 +0000 (18:22 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 15 Jan 2026 18:19:06 +0000 (20:19 +0200)
commitda833bb4baf58a8c817818a064bc354429a8c091
tree09f9f5b1b34c33c971eddc70e95354d330a93f3c
parent0e6d7b6e502158d6a12725471d57450dcc0b3326
drm/i915/dp: Simplify the DSC slice config loop's slices-per-pipe iteration

Simplify the slice config loop in intel_dp_dsc_get_slice_count(), using
the loop iterator as the slices-per-pipe value directly, instead of
looking up the same value from an array.

While at it move the code comment about the slice configuration closer
to where the configuration is determined and clarify it a bit.

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260114162232.92731-11-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c