drm/i915/display: Move the commit_tail() disable sequence to separate function
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 28 Aug 2019 22:47:01 +0000 (15:47 -0700)
committerManasi Navare <manasi.d.navare@intel.com>
Thu, 29 Aug 2019 21:15:29 +0000 (14:15 -0700)
commit66d9cec8a6c9f3eb1d81507d5f045e28272359fb
tree0c2ac74796f6cc00f6b2a0618707fc44f5222b9c
parent0c84127102ee240e3039d6e78a3dba0afff2f810
drm/i915/display: Move the commit_tail() disable sequence to separate function

Create a new function intel_commit_modeset_disables() consistent
with the naming in drm atomic helpers and similar to the enable function.
This helps better organize the disable sequence in atomic_commit_tail()

No functional change

v4:
* Do not create a function pointer, just a function (Maarten)
v3:
* Rebase (Manasi)
v2:
* Create a helper for old_crtc_state disables (Lucas)

Suggested-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190828224701.422-1-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/i915_drv.h