drm/msm/dpu: drop dpu_encoder_phys_ops::late_register()
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 21 May 2023 19:22:28 +0000 (22:22 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 4 Jun 2023 01:54:14 +0000 (04:54 +0300)
This callback has been unused since the driver being added. Drop it now.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/538302/
Link: https://lore.kernel.org/r/20230521192230.9747-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h

index 1dc5dbe..c771383 100644 (file)
@@ -2115,7 +2115,6 @@ DEFINE_SHOW_ATTRIBUTE(_dpu_encoder_status);
 static int _dpu_encoder_init_debugfs(struct drm_encoder *drm_enc)
 {
        struct dpu_encoder_virt *dpu_enc = to_dpu_encoder_virt(drm_enc);
-       int i;
 
        char name[DPU_NAME_SIZE];
 
@@ -2134,12 +2133,6 @@ static int _dpu_encoder_init_debugfs(struct drm_encoder *drm_enc)
        debugfs_create_file("status", 0600,
                dpu_enc->debugfs_root, dpu_enc, &_dpu_encoder_status_fops);
 
-       for (i = 0; i < dpu_enc->num_phys_encs; i++)
-               if (dpu_enc->phys_encs[i]->ops.late_register)
-                       dpu_enc->phys_encs[i]->ops.late_register(
-                                       dpu_enc->phys_encs[i],
-                                       dpu_enc->debugfs_root);
-
        return 0;
 }
 #else
index 1d434b2..9e29079 100644 (file)
@@ -63,7 +63,6 @@ struct dpu_encoder_phys;
 /**
  * struct dpu_encoder_phys_ops - Interface the physical encoders provide to
  *     the containing virtual encoder.
- * @late_register:             DRM Call. Add Userspace interfaces, debugfs.
  * @prepare_commit:            MSM Atomic Call, start of atomic commit sequence
  * @is_master:                 Whether this phys_enc is the current master
  *                             encoder. Can be switched at enable time. Based
@@ -93,8 +92,6 @@ struct dpu_encoder_phys;
  */
 
 struct dpu_encoder_phys_ops {
-       int (*late_register)(struct dpu_encoder_phys *encoder,
-                       struct dentry *debugfs_root);
        void (*prepare_commit)(struct dpu_encoder_phys *encoder);
        bool (*is_master)(struct dpu_encoder_phys *encoder);
        void (*atomic_mode_set)(struct dpu_encoder_phys *encoder,