drm/i915/wm: move ILK watermark sanitization to i9xx_wm.[ch]
authorJani Nikula <jani.nikula@intel.com>
Wed, 15 Feb 2023 14:19:06 +0000 (16:19 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 16 Feb 2023 14:46:35 +0000 (16:46 +0200)
commit3dadb4a17035ad4c84670d2ee1a3070f5fab4bbc
tree61d261e0ebae0ebe3ad3180e5dc51ff71c9a189d
parent9fcbae04987b9bbc6b5459bb37814be811c6e05d
drm/i915/wm: move ILK watermark sanitization to i9xx_wm.[ch]

Move sanitize_watermarks() to i9xx_wm.[ch] and rename as
ilk_wm_sanitize(). The slightly unfortunate downside is having to expose
intel_atomic_check() from intel_display.c, but this declutters
intel_display.c nicely.

v2:
- Move to i9xx_wm.[ch] instead of intel_wm.[ch] (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
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/20230215141910.433043-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/i9xx_wm.c
drivers/gpu/drm/i915/display/i9xx_wm.h
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h