Skip to content

Commit 88148bf

Browse files
MarijnS95lumag
authored andcommitted
drm/msm/dpu: Rename ctx parameter to intf to match other functions
All other functions in dpu_hw_intf name the "self" parameter `intf`, except dpu_hw_intf_setup_timing_engine() and the recently added dpu_hw_intf_program_intf_cmd_cfg(). Clean that up for consistency. Signed-off-by: Marijn Suijten <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/589903/ Link: https://lore.kernel.org/r/20240417-drm-msm-initial-dualpipe-dsc-fixes-v1-7-78ae3ee9a697@somainline.org Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent ca97fa4 commit 88148bf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@
9696
#define INTF_CFG2_DCE_DATA_COMPRESS BIT(12)
9797

9898

99-
static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *ctx,
99+
static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *intf,
100100
const struct dpu_hw_intf_timing_params *p,
101101
const struct dpu_format *fmt)
102102
{
103-
struct dpu_hw_blk_reg_map *c = &ctx->hw;
103+
struct dpu_hw_blk_reg_map *c = &intf->hw;
104104
u32 hsync_period, vsync_period;
105105
u32 display_v_start, display_v_end;
106106
u32 hsync_start_x, hsync_end_x;
@@ -118,7 +118,7 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *ctx,
118118
/* read interface_cfg */
119119
intf_cfg = DPU_REG_READ(c, INTF_CONFIG);
120120

121-
if (ctx->cap->type == INTF_DP)
121+
if (intf->cap->type == INTF_DP)
122122
dp_intf = true;
123123

124124
hsync_period = p->hsync_pulse_width + p->h_back_porch + p->width +
@@ -223,7 +223,7 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *ctx,
223223
DPU_REG_WRITE(c, INTF_FRAME_LINE_COUNT_EN, 0x3);
224224
DPU_REG_WRITE(c, INTF_CONFIG, intf_cfg);
225225
DPU_REG_WRITE(c, INTF_PANEL_FORMAT, panel_format);
226-
if (ctx->cap->features & BIT(DPU_DATA_HCTL_EN)) {
226+
if (intf->cap->features & BIT(DPU_DATA_HCTL_EN)) {
227227
/*
228228
* DATA_HCTL_EN controls data timing which can be different from
229229
* video timing. It is recommended to enable it for all cases, except
@@ -518,18 +518,18 @@ static void dpu_hw_intf_disable_autorefresh(struct dpu_hw_intf *intf,
518518

519519
}
520520

521-
static void dpu_hw_intf_program_intf_cmd_cfg(struct dpu_hw_intf *ctx,
521+
static void dpu_hw_intf_program_intf_cmd_cfg(struct dpu_hw_intf *intf,
522522
struct dpu_hw_intf_cmd_mode_cfg *cmd_mode_cfg)
523523
{
524-
u32 intf_cfg2 = DPU_REG_READ(&ctx->hw, INTF_CONFIG2);
524+
u32 intf_cfg2 = DPU_REG_READ(&intf->hw, INTF_CONFIG2);
525525

526526
if (cmd_mode_cfg->data_compress)
527527
intf_cfg2 |= INTF_CFG2_DCE_DATA_COMPRESS;
528528

529529
if (cmd_mode_cfg->wide_bus_en)
530530
intf_cfg2 |= INTF_CFG2_DATABUS_WIDEN;
531531

532-
DPU_REG_WRITE(&ctx->hw, INTF_CONFIG2, intf_cfg2);
532+
DPU_REG_WRITE(&intf->hw, INTF_CONFIG2, intf_cfg2);
533533
}
534534

535535
struct dpu_hw_intf *dpu_hw_intf_init(struct drm_device *dev,

0 commit comments

Comments
 (0)