Skip to contentSkip to conversation

drm/msm: Remove unused declaraions

PATCH In review Zhang Zekun 2 participants 2 messages Aug 15, 2024 – Aug 16, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm: Remove unused declaraions

The definition of msm_atomic_state_clear() and msm_atomic_state_free() has been removed since commit c21c731d93e8 ("drm/msm: Don't subclass drm_atomic_state anymore").

Also, the definition of msm_dsi_host_set_src_pll() has been removed since commit 9b077c1581cf ("drm/msm/dsi: stop setting clock parents manually"). So, let's remove this unused declarations.

---
 drivers/gpu/drm/msm/dsi/dsi.h | 2 --
 drivers/gpu/drm/msm/msm_drv.h | 2 --
 2 files changed, 4 deletions(-)
drivers/gpu/drm/msm/dsi/dsi.h +0 -2
index 87496db203d6..6ffc8a3b6c72 100644
@@ -85,8 +85,6 @@ int msm_dsi_host_register(struct mipi_dsi_host *host);
 void msm_dsi_host_unregister(struct mipi_dsi_host *host);
 void msm_dsi_host_set_phy_mode(struct mipi_dsi_host *host,
 			struct msm_dsi_phy *src_phy);
-int msm_dsi_host_set_src_pll(struct mipi_dsi_host *host,
-			struct msm_dsi_phy *src_phy);
 void msm_dsi_host_reset_phy(struct mipi_dsi_host *host);
 void msm_dsi_host_get_phy_clk_req(struct mipi_dsi_host *host,
 	struct msm_dsi_phy_clk_request *clk_req,
drivers/gpu/drm/msm/msm_drv.h +0 -2
index be016d7b4ef1..48799c678a6b 100644
@@ -254,8 +254,6 @@ void msm_atomic_destroy_pending_timer(struct msm_pending_timer *timer);
 void msm_atomic_commit_tail(struct drm_atomic_state *state);
 int msm_atomic_check(struct drm_device *dev, struct drm_atomic_state *state);
 struct drm_atomic_state *msm_atomic_state_alloc(struct drm_device *dev);
-void msm_atomic_state_clear(struct drm_atomic_state *state);
-void msm_atomic_state_free(struct drm_atomic_state *state);
 
 int msm_crtc_enable_vblank(struct drm_crtc *crtc);
 void msm_crtc_disable_vblank(struct drm_crtc *crtc);
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Zhang Zekun

The definition of msm_atomic_state_clear() and msm_atomic_state_free() has been removed since commit c21c731d93e8 ("drm/msm: Don't subclass drm_atomic_state anymore").

Also, the definition of msm_dsi_host_set_src_pll() has been removed since commit 9b077c1581cf ("drm/msm/dsi: stop setting clock parents manually"). So, let's remove this unused declarations.

Quoted 6 lines
---
  drivers/gpu/drm/msm/dsi/dsi.h | 2 --
  drivers/gpu/drm/msm/msm_drv.h | 2 --
  2 files changed, 4 deletions(-)

It looks like you did not run get_maintainers.pl because freedreno list is not CCed on this. For future reference, please do to get our attention.

The change itself is fine, hence