]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/scaler: unloop scaler readout that is run once
authorMichał Grzelak <michal.grzelak@intel.com>
Sat, 9 May 2026 16:40:46 +0000 (18:40 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 May 2026 23:55:15 +0000 (02:55 +0300)
commitfadb1ef10db1bccf3bd402734dd97e6344192c0b
tree8826d09ca637f26307bd8059ed13514b12e1c078
parentb8ccfbc01d71eb794829ebdb7a3b1f203b7865b3
drm/i915/scaler: unloop scaler readout that is run once

Most of the loop's code is run once because of the continue statement at
it's start and break statement at it's end. Kick it out of the loop.

While at it, skl_scaler_get_config()'s loop is skipped when specified
condition is met and broken when the condition is not met. Equivalently,
invert the condition and break the loop.

Changelog:
v2->v3
- keep ctl inside the loop (Ville)

Cc: Nemesa Garg <nemesa.garg@intel.com>
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260509164048.627399-8-michal.grzelak@intel.com
drivers/gpu/drm/i915/display/skl_scaler.c