static void ade_crtc_disable(struct drm_crtc *crtc) { struct ade_crtc *acrtc = to_ade_crtc(crtc); struct ade_hw_ctx *ctx = acrtc->ctx; if (!acrtc->enable) return; ade_power_down(ctx); acrtc->enable = false; }
static void ade_crtc_atomic_disable(struct drm_crtc *crtc, struct drm_crtc_state *old_state) { struct ade_crtc *acrtc = to_ade_crtc(crtc); struct ade_hw_ctx *ctx = acrtc->ctx; if (!acrtc->enable) return; drm_crtc_vblank_off(crtc); ade_power_down(ctx); acrtc->enable = false; }