drm/i915/display: split out hw state readout and sanitize
authorJani Nikula <jani.nikula@intel.com>
Fri, 17 Jun 2022 09:48:16 +0000 (12:48 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 20 Jun 2022 16:28:42 +0000 (19:28 +0300)
commit2c7676b6b1f57713f55e738f803ecaf91dfc399f
treec8063433f055d8ce5c4cce0957483915d4889ede
parentd5929835080a60f9119d024fa42f315913942f76
drm/i915/display: split out hw state readout and sanitize

Split out the modeset hardware state readout and sanitize, or state
setup, to a separate file.

Do some drive-by checkpatch fixes while at it.

v2: Rebase

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220617094817.3466584-1-jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_modeset_setup.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_modeset_setup.h [new file with mode: 0644]