mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/msm/dpu: Drop unused members from HW structs
Some of these members were initialized while never read, while others were not even assigned any pointer value at all. Drop them to save some space, and above all confusion when looking at or accidentally dereferencing these members. Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/533862/ Link: https://lore.kernel.org/r/20230418-dpu-drop-useless-for-lookup-v3-2-e8d869eea455@somainline.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
committed by
Dmitry Baryshkov
parent
10036161ef
commit
94fdd55b93
@@ -359,7 +359,6 @@ struct dpu_hw_intf *dpu_hw_intf_init(enum dpu_intf idx,
|
||||
*/
|
||||
c->idx = idx;
|
||||
c->cap = cfg;
|
||||
c->mdss = m;
|
||||
_setup_intf_ops(&c->ops, c->cap->features);
|
||||
|
||||
return c;
|
||||
|
||||
@@ -90,7 +90,6 @@ struct dpu_hw_intf {
|
||||
/* intf */
|
||||
enum dpu_intf idx;
|
||||
const struct dpu_intf_cfg *cap;
|
||||
const struct dpu_mdss_cfg *mdss;
|
||||
|
||||
/* ops */
|
||||
struct dpu_hw_intf_ops ops;
|
||||
|
||||
@@ -812,7 +812,6 @@ struct dpu_hw_sspp *dpu_hw_sspp_init(enum dpu_sspp idx,
|
||||
}
|
||||
|
||||
/* Assign ops */
|
||||
hw_pipe->catalog = catalog;
|
||||
hw_pipe->ubwc = catalog->ubwc;
|
||||
hw_pipe->idx = idx;
|
||||
hw_pipe->cap = cfg;
|
||||
|
||||
@@ -341,7 +341,6 @@ struct dpu_hw_sspp_ops {
|
||||
* struct dpu_hw_sspp - pipe description
|
||||
* @base: hardware block base structure
|
||||
* @hw: block hardware details
|
||||
* @catalog: back pointer to catalog
|
||||
* @ubwc: ubwc configuration data
|
||||
* @idx: pipe index
|
||||
* @cap: pointer to layer_cfg
|
||||
@@ -350,7 +349,6 @@ struct dpu_hw_sspp_ops {
|
||||
struct dpu_hw_sspp {
|
||||
struct dpu_hw_blk base;
|
||||
struct dpu_hw_blk_reg_map hw;
|
||||
const struct dpu_mdss_cfg *catalog;
|
||||
const struct dpu_ubwc_cfg *ubwc;
|
||||
|
||||
/* Pipe */
|
||||
|
||||
@@ -263,7 +263,6 @@ struct dpu_hw_wb *dpu_hw_wb_init(enum dpu_wb idx,
|
||||
}
|
||||
|
||||
/* Assign ops */
|
||||
c->mdp = &m->mdp[0];
|
||||
c->idx = idx;
|
||||
c->caps = cfg;
|
||||
_setup_wb_ops(&c->ops, c->caps->features);
|
||||
|
||||
@@ -76,15 +76,12 @@ struct dpu_hw_wb_ops {
|
||||
/**
|
||||
* struct dpu_hw_wb : WB driver object
|
||||
* @hw: block hardware details
|
||||
* @mdp: pointer to associated mdp portion of the catalog
|
||||
* @idx: hardware index number within type
|
||||
* @wb_hw_caps: hardware capabilities
|
||||
* @ops: function pointers
|
||||
* @hw_mdp: MDP top level hardware block
|
||||
*/
|
||||
struct dpu_hw_wb {
|
||||
struct dpu_hw_blk_reg_map hw;
|
||||
const struct dpu_mdp_cfg *mdp;
|
||||
|
||||
/* wb path */
|
||||
int idx;
|
||||
@@ -92,8 +89,6 @@ struct dpu_hw_wb {
|
||||
|
||||
/* ops */
|
||||
struct dpu_hw_wb_ops ops;
|
||||
|
||||
struct dpu_hw_mdp *hw_mdp;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user