drm/msm: dpu: Use atomic_disable for dpu_crtc_disable
authorSean Paul <seanpaul@chromium.org>
Fri, 16 Nov 2018 18:42:30 +0000 (13:42 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:10:14 +0000 (13:10 -0500)
Matches dpu_crtc_enable and we'll need the old state in a future patch

Changes in v2:
- None

Reviewed-by: Jeykumar Sankaran <jsanka@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

index 576708aed5c2ead4add33f372f617b771e01038c..a403002d5e8e0832ee747b677200c769bf47fab3 100644 (file)
@@ -842,7 +842,8 @@ static struct drm_crtc_state *dpu_crtc_duplicate_state(struct drm_crtc *crtc)
        return &cstate->base;
 }
 
-static void dpu_crtc_disable(struct drm_crtc *crtc)
+static void dpu_crtc_disable(struct drm_crtc *crtc,
+                            struct drm_crtc_state *old_crtc_state)
 {
        struct dpu_crtc *dpu_crtc;
        struct dpu_crtc_state *cstate;
@@ -1434,7 +1435,7 @@ static const struct drm_crtc_funcs dpu_crtc_funcs = {
 };
 
 static const struct drm_crtc_helper_funcs dpu_crtc_helper_funcs = {
-       .disable = dpu_crtc_disable,
+       .atomic_disable = dpu_crtc_disable,
        .atomic_enable = dpu_crtc_enable,
        .atomic_check = dpu_crtc_atomic_check,
        .atomic_begin = dpu_crtc_atomic_begin,