From 2c67eda0e272e83979ee859dcbcba5e4c81070a3 Mon Sep 17 00:00:00 2001 From: Damon Ding Date: Mon, 6 Jan 2025 10:08:53 +0800 Subject: [PATCH] drm/rockchip: vvop: adapt to the drm helper functions with full atomic state Pass the full state to CRTC atomic enable/disable/flush and plane atomic update. Relevant commits: commit 351f950db4ab ("drm/atomic: Pass the full state to CRTC atomic enable/disable") commit f6ebe9f9c923 ("drm/atomic: Pass the full state to CRTC atomic begin and flush") commit 977697e20b3d ("drm/atomic: Pass the full state to planes atomic disable and update") Change-Id: I3a523d02d80c0248c7065b408985737d5b83a3f8 Signed-off-by: Damon Ding --- drivers/gpu/drm/rockchip/rockchip_drm_vvop.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vvop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vvop.c index 3f4432ad596c..4482da16de56 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vvop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vvop.c @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include #include @@ -70,8 +72,7 @@ static const struct drm_plane_funcs vvop_plane_funcs = { .atomic_destroy_state = drm_atomic_helper_plane_destroy_state, }; -static void vvop_plane_atomic_update(struct drm_plane *plane, - struct drm_plane_state *old_state) +static void vvop_plane_atomic_update(struct drm_plane *plane, struct drm_atomic_state *state) { } @@ -398,14 +399,12 @@ static const struct drm_crtc_funcs vvop_crtc_funcs = { .disable_vblank = vvop_disable_vblank, }; -static void vvop_crtc_atomic_enable(struct drm_crtc *crtc, - struct drm_crtc_state *old_state) +static void vvop_crtc_atomic_enable(struct drm_crtc *crtc, struct drm_atomic_state *state) { drm_crtc_vblank_on(crtc); } -static void vvop_crtc_atomic_disable(struct drm_crtc *crtc, - struct drm_crtc_state *old_state) +static void vvop_crtc_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *state) { unsigned long flags; @@ -420,8 +419,7 @@ static void vvop_crtc_atomic_disable(struct drm_crtc *crtc, } -static void vvop_crtc_atomic_flush(struct drm_crtc *crtc, - struct drm_crtc_state *old_crtc_state) +static void vvop_crtc_atomic_flush(struct drm_crtc *crtc, struct drm_atomic_state *state) { unsigned long flags;