Skip to contentSkip to conversation

drm/msm/dpu: drop unused access macros

PATCH In review Dmitry Baryshkov 4 participants 4 messages Feb 15, 2022 – Feb 16, 2022

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

PATCH 1/1 drm/msm/dpu: drop unused access macros

The access macros BLK_foo are not used by the code, drop them.

---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 16 ----------------
 1 file changed, 16 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +0 -16
index cac0298aeb52..975ff3a4ae3d 100644
@@ -778,22 +778,6 @@ struct dpu_mdss_cfg {
 	unsigned long mdss_irqs;
 };
 
-/*
- * Access Macros
- */
-#define BLK_MDP(s) ((s)->mdp)
-#define BLK_CTL(s) ((s)->ctl)
-#define BLK_VIG(s) ((s)->vig)
-#define BLK_RGB(s) ((s)->rgb)
-#define BLK_DMA(s) ((s)->dma)
-#define BLK_CURSOR(s) ((s)->cursor)
-#define BLK_MIXER(s) ((s)->mixer)
-#define BLK_PINGPONG(s) ((s)->pingpong)
-#define BLK_INTF(s) ((s)->intf)
-#define BLK_AD(s) ((s)->ad)
-#define BLK_DSPP(s) ((s)->dspp)
-#define BLK_MERGE3d(s) ((s)->merge_3d)
-
 /**
  * dpu_hw_catalog_init - dpu hardware catalog init API retrieves
  * hardcoded target specific catalog information in config structure
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Dmitry Baryshkov

The access macros BLK_foo are not used by the code, drop them.

Quoted 34 lines
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 16 ----------------
 1 file changed, 16 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +0 -16
index cac0298aeb52..975ff3a4ae3d 100644
@@ -778,22 +778,6 @@ struct dpu_mdss_cfg {
 	unsigned long mdss_irqs;
 };
 
-/*
- * Access Macros
- */
-#define BLK_MDP(s) ((s)->mdp)
-#define BLK_CTL(s) ((s)->ctl)
-#define BLK_VIG(s) ((s)->vig)
-#define BLK_RGB(s) ((s)->rgb)
-#define BLK_DMA(s) ((s)->dma)
-#define BLK_CURSOR(s) ((s)->cursor)
-#define BLK_MIXER(s) ((s)->mixer)
-#define BLK_PINGPONG(s) ((s)->pingpong)
-#define BLK_INTF(s) ((s)->intf)
-#define BLK_AD(s) ((s)->ad)
-#define BLK_DSPP(s) ((s)->dspp)
-#define BLK_MERGE3d(s) ((s)->merge_3d)
-
 /**
  * dpu_hw_catalog_init - dpu hardware catalog init API retrieves
  * hardcoded target specific catalog information in config structure
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#3 lore raw
In reply to Dmitry Baryshkov
Quoted 3 lines · Dmitry Baryshkov

The access macros BLK_foo are not used by the code, drop them.

Quoted 31 lines
---
  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 16 ----------------
  1 file changed, 16 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +0 -16
index cac0298aeb52..975ff3a4ae3d 100644
@@ -778,22 +778,6 @@ struct dpu_mdss_cfg {
  	unsigned long mdss_irqs;
  };
 
-/*
- * Access Macros
- */
-#define BLK_MDP(s) ((s)->mdp)
-#define BLK_CTL(s) ((s)->ctl)
-#define BLK_VIG(s) ((s)->vig)
-#define BLK_RGB(s) ((s)->rgb)
-#define BLK_DMA(s) ((s)->dma)
-#define BLK_CURSOR(s) ((s)->cursor)
-#define BLK_MIXER(s) ((s)->mixer)
-#define BLK_PINGPONG(s) ((s)->pingpong)
-#define BLK_INTF(s) ((s)->intf)
-#define BLK_AD(s) ((s)->ad)
-#define BLK_DSPP(s) ((s)->dspp)
-#define BLK_MERGE3d(s) ((s)->merge_3d)
-
  /**
   * dpu_hw_catalog_init - dpu hardware catalog init API retrieves
   * hardcoded target specific catalog information in config structure