Skip to content

Commit f8706bf

Browse files
committed
drm/msm: move msm_display_topology to the DPU driver
The struct msm_display_topology is only used by the DPU driver. Remove it from the global header and move it to DPU-specific header. Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/622534/ Link: https://lore.kernel.org/r/[email protected]
1 parent 20c7b42 commit f8706bf

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ struct dpu_rm {
3737
struct dpu_hw_blk *cdm_blk;
3838
};
3939

40+
/**
41+
* struct msm_display_topology - defines a display topology pipeline
42+
* @num_lm: number of layer mixers used
43+
* @num_intf: number of interfaces the panel is mounted on
44+
* @num_dspp: number of dspp blocks used
45+
* @num_dsc: number of Display Stream Compression (DSC) blocks used
46+
* @needs_cdm: indicates whether cdm block is needed for this display topology
47+
*/
48+
struct msm_display_topology {
49+
u32 num_lm;
50+
u32 num_intf;
51+
u32 num_dspp;
52+
u32 num_dsc;
53+
bool needs_cdm;
54+
};
55+
4056
/**
4157
* dpu_rm_init - Read hardware catalog and create reservation tracking objects
4258
* for all HW blocks.

drivers/gpu/drm/msm/msm_drv.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,6 @@ enum msm_dsi_controller {
7373
#define MSM_GPU_MAX_RINGS 4
7474
#define MAX_H_TILES_PER_DISPLAY 2
7575

76-
/**
77-
* struct msm_display_topology - defines a display topology pipeline
78-
* @num_lm: number of layer mixers used
79-
* @num_intf: number of interfaces the panel is mounted on
80-
* @num_dspp: number of dspp blocks used
81-
* @num_dsc: number of Display Stream Compression (DSC) blocks used
82-
* @needs_cdm: indicates whether cdm block is needed for this display topology
83-
*/
84-
struct msm_display_topology {
85-
u32 num_lm;
86-
u32 num_intf;
87-
u32 num_dspp;
88-
u32 num_dsc;
89-
bool needs_cdm;
90-
};
91-
9276
/* Commit/Event thread specific structure */
9377
struct msm_drm_thread {
9478
struct drm_device *dev;

0 commit comments

Comments
 (0)