drm/i915: Use single_enabled_crtc() in i9xx_update_wm()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Dec 2021 14:43:11 +0000 (16:43 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 26 Jan 2022 19:18:55 +0000 (21:18 +0200)
commitbf172a01ea485e630f28b6ad525fb277d73d3e3d
tree8238738de642b96e4132ef41abaace73652f9e75
parentd05824796d9cf6c0e59a0aa86333584bde8b51c6
drm/i915: Use single_enabled_crtc() in i9xx_update_wm()

Replace the ad-hoc single_enabled_crtc() thing in i9xx_update_wm()
with the real thing, just like we do in the other legacy wm functions.
We can also nuke the extra 'enabled' variable.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211209144311.3221-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c