Message ID | 20220215145306.3470924-1-dmitry.baryshkov@linaro.org |
---|---|
State | Accepted |
Commit | 77e113351ffe49119ef322e9a2a0e65d57c6963b |
Headers | show |
Series | drm/msm/dpu: drop unused access macros | expand |
On Tue 15 Feb 08:53 CST 2022, Dmitry Baryshkov wrote: > The access macros BLK_foo are not used by the code, drop them. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 16 ---------------- > 1 file changed, 16 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > index cac0298aeb52..975ff3a4ae3d 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > @@ -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 > -- > 2.34.1 >
Quoting Dmitry Baryshkov (2022-02-15 06:53:06) > The access macros BLK_foo are not used by the code, drop them. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > --- Reviewed-by: Stephen Boyd <swboyd@chromium.org>
On 2/15/2022 6:53 AM, Dmitry Baryshkov wrote: > The access macros BLK_foo are not used by the code, drop them. > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 16 ---------------- > 1 file changed, 16 deletions(-) > > diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > index cac0298aeb52..975ff3a4ae3d 100644 > --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h > @@ -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
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h index cac0298aeb52..975ff3a4ae3d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h @@ -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
The access macros BLK_foo are not used by the code, drop them. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 16 ---------------- 1 file changed, 16 deletions(-)