Skip to content

Commit 7a73594

Browse files
committed
drm/msm/dpu: remove unused fields from struct dpu_core_perf
Remove dpu_core_perf::dev and dpu_core_perf::debugfs_root fields, they are not used by the code. Reviewed-by: Konrad Dybcio <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/550200/ Link: https://lore.kernel.org/r/[email protected]
1 parent 779f336 commit 7a73594

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,15 +492,12 @@ void dpu_core_perf_destroy(struct dpu_core_perf *perf)
492492

493493
perf->max_core_clk_rate = 0;
494494
perf->core_clk = NULL;
495-
perf->dev = NULL;
496495
}
497496

498497
int dpu_core_perf_init(struct dpu_core_perf *perf,
499-
struct drm_device *dev,
500498
const struct dpu_perf_cfg *perf_cfg,
501499
struct clk *core_clk)
502500
{
503-
perf->dev = dev;
504501
perf->perf_cfg = perf_cfg;
505502
perf->core_clk = core_clk;
506503

drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ struct dpu_core_perf_tune {
3636

3737
/**
3838
* struct dpu_core_perf - definition of core performance context
39-
* @dev: Pointer to drm device
40-
* @debugfs_root: top level debug folder
4139
* @perf_cfg: Platform-specific performance configuration
4240
* @core_clk: Pointer to the core clock
4341
* @core_clk_rate: current core clock rate
@@ -49,8 +47,6 @@ struct dpu_core_perf_tune {
4947
* @fix_core_ab_vote: fixed core ab vote in bps used in mode 2
5048
*/
5149
struct dpu_core_perf {
52-
struct drm_device *dev;
53-
struct dentry *debugfs_root;
5450
const struct dpu_perf_cfg *perf_cfg;
5551
struct clk *core_clk;
5652
u64 core_clk_rate;
@@ -95,12 +91,10 @@ void dpu_core_perf_destroy(struct dpu_core_perf *perf);
9591
/**
9692
* dpu_core_perf_init - initialize the given core performance context
9793
* @perf: Pointer to core performance context
98-
* @dev: Pointer to drm device
9994
* @perf_cfg: Pointer to platform performance configuration
10095
* @core_clk: pointer to core clock
10196
*/
10297
int dpu_core_perf_init(struct dpu_core_perf *perf,
103-
struct drm_device *dev,
10498
const struct dpu_perf_cfg *perf_cfg,
10599
struct clk *core_clk);
106100

drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms)
11701170
dpu_kms->hw_vbif[vbif->id] = hw;
11711171
}
11721172

1173-
rc = dpu_core_perf_init(&dpu_kms->perf, dev, dpu_kms->catalog->perf,
1173+
rc = dpu_core_perf_init(&dpu_kms->perf, dpu_kms->catalog->perf,
11741174
msm_clk_bulk_get_clock(dpu_kms->clocks, dpu_kms->num_clocks, "core"));
11751175
if (rc) {
11761176
DPU_ERROR("failed to init perf %d\n", rc);

0 commit comments

Comments
 (0)