Skip to content

Commit fabaf17

Browse files
konradybciolumag
authored andcommitted
drm/msm/mdss: Rename path references to mdp_path
The DPU1 driver needs to handle all MDPn<->DDR paths, as well as CPU<->SLAVE_DISPLAY_CFG. The former ones share how their values are calculated, but the latter one has static predefines spanning all SoCs. In preparation for supporting the CPU<->SLAVE_DISPLAY_CFG path, rename the path-related struct members to include "mdp_". Signed-off-by: Konrad Dybcio <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/570163/ Link: https://lore.kernel.org/r/[email protected]
1 parent ded61d7 commit fabaf17

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/gpu/drm/msm/msm_mdss.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ struct msm_mdss {
4040
struct irq_domain *domain;
4141
} irq_controller;
4242
const struct msm_mdss_data *mdss_data;
43-
struct icc_path *path[2];
44-
u32 num_paths;
43+
struct icc_path *mdp_path[2];
44+
u32 num_mdp_paths;
4545
};
4646

4747
static int msm_mdss_parse_data_bus_icc_path(struct device *dev,
@@ -54,13 +54,13 @@ static int msm_mdss_parse_data_bus_icc_path(struct device *dev,
5454
if (IS_ERR_OR_NULL(path0))
5555
return PTR_ERR_OR_ZERO(path0);
5656

57-
msm_mdss->path[0] = path0;
58-
msm_mdss->num_paths = 1;
57+
msm_mdss->mdp_path[0] = path0;
58+
msm_mdss->num_mdp_paths = 1;
5959

6060
path1 = devm_of_icc_get(dev, "mdp1-mem");
6161
if (!IS_ERR_OR_NULL(path1)) {
62-
msm_mdss->path[1] = path1;
63-
msm_mdss->num_paths++;
62+
msm_mdss->mdp_path[1] = path1;
63+
msm_mdss->num_mdp_paths++;
6464
}
6565

6666
return 0;
@@ -70,8 +70,8 @@ static void msm_mdss_icc_request_bw(struct msm_mdss *msm_mdss, unsigned long bw)
7070
{
7171
int i;
7272

73-
for (i = 0; i < msm_mdss->num_paths; i++)
74-
icc_set_bw(msm_mdss->path[i], 0, Bps_to_icc(bw));
73+
for (i = 0; i < msm_mdss->num_mdp_paths; i++)
74+
icc_set_bw(msm_mdss->mdp_path[i], 0, Bps_to_icc(bw));
7575
}
7676

7777
static void msm_mdss_irq(struct irq_desc *desc)

0 commit comments

Comments
 (0)