]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/dpu: remove CRTC frame event callback registration
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 24 Jun 2024 22:38:25 +0000 (01:38 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 25 Jun 2024 12:22:37 +0000 (15:22 +0300)
commit5b90752f961959ed0b2ff4db1372886f87c6e9bb
tree49b7df58bfbb5c77691422624713094360b47929
parent2df0161959d1c76a8f5fb2c2e6bce12d87f22848
drm/msm/dpu: remove CRTC frame event callback registration

The frame event callback is always set to dpu_crtc_frame_event_cb() (or
to NULL) and the data is always either the CRTC itself or NULL
(correpondingly). Thus drop the event callback registration, call the
dpu_crtc_frame_event_cb() directly and gate on the dpu_enc->crtc
assigned using dpu_encoder_assign_crtc().

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/600751/
Link: https://lore.kernel.org/r/20240625-dpu-no-crtc-register-v3-1-1b161df13776@linaro.org
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h
drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h