drm/i915/pps: move pps code over from intel_display.c and refactor
authorJani Nikula <jani.nikula@intel.com>
Wed, 20 Jan 2021 10:18:32 +0000 (12:18 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 21 Jan 2021 11:26:19 +0000 (13:26 +0200)
commit0bf1e5a852e38c2e7dd2d37b86408bc6127022d2
tree9b2023a983cf487ddce1acebbd983e80a8a4df40
parent97b70144b2502a86ba536924b3b937ba4928f6c4
drm/i915/pps: move pps code over from intel_display.c and refactor

intel_display.c has some pps functions that belong to intel_pps.c. Move
them over.

While at it, refactor the duplicate intel_pps_init() in intel_display.c
into an orthogonal intel_pps_setup() in intel_pps.c, and call it earlier
in intel_modeset_init_nogem().

Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210120101834.19813-2-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_pps.c
drivers/gpu/drm/i915/display/intel_pps.h
drivers/gpu/drm/i915/i915_drv.c