drm/i915/pps: move pps (panel) modeset asserts to intel_pps.c
authorJani Nikula <jani.nikula@intel.com>
Thu, 30 Sep 2021 09:22:59 +0000 (12:22 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 1 Oct 2021 07:48:59 +0000 (10:48 +0300)
commitaa0813b1ba31c345fb745bc8ece6e5b7cbfca71b
tree2d2fa1291f678149e88c5501a979416e222c7922
parente04a911f436619fff2e57470a50fd2b2436eb6eb
drm/i915/pps: move pps (panel) modeset asserts to intel_pps.c

Move assert_panel_unlocked() to intel_pps.c and rename
assert_pps_unlocked(). Keep the functionality and the assert code
together.

There's still a bit of a split between the eDP PPS usage in intel_pps.c
and all the other PPS usage, and assert_pps_unlocked() is arguably more
related to the latter. However, intel_pps.c is the best fit for anything
touching the PPS registers.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a9b77692a145891789eefb0447e082cfc22aaa85.1632992608.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_dpll.c
drivers/gpu/drm/i915/display/intel_pps.c
drivers/gpu/drm/i915/display/intel_pps.h