]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display: use max_level to control loop
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 22 Jun 2021 21:22:10 +0000 (14:22 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Jun 2021 16:04:48 +0000 (09:04 -0700)
commite698f748c6082aae5570c752a046606270d3c008
tree6e9ae71b7a9e4abc595377b97d3ec7bf6128df88
parent372af79929496edea3df94b8a51bc1b2002eab22
drm/i915/display: use max_level to control loop

Since we are already loop through the levels to sanitize them, mark what
is the real max_level so it can be used in subsequent loop. This makes
it simpler to later add the adjustment latency to "valid levels". No
change in behavior, just makes the code easier to follow.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210622212210.3746133-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_pm.c