Skip to content

Commit 0ba7ffe

Browse files
committed
drm/i915/display: remove alias to dig_port
We don't need intel_dig_port and dig_port to refer to the same thing. Prefer the latter. v2: fix coding style Signed-off-by: Lucas De Marchi <[email protected]> Reviewed-by: Matt Roper <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a5523e2 commit 0ba7ffe

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/gpu/drm/i915/display/intel_ddi.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3380,11 +3380,10 @@ static void intel_ddi_pre_enable_hdmi(struct intel_atomic_state *state,
33803380
const struct intel_crtc_state *crtc_state,
33813381
const struct drm_connector_state *conn_state)
33823382
{
3383-
struct intel_digital_port *intel_dig_port = enc_to_dig_port(encoder);
3384-
struct intel_hdmi *intel_hdmi = &intel_dig_port->hdmi;
3383+
struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
3384+
struct intel_hdmi *intel_hdmi = &dig_port->hdmi;
33853385
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
33863386
int level = intel_ddi_hdmi_level(encoder);
3387-
struct intel_digital_port *dig_port = enc_to_dig_port(encoder);
33883387

33893388
intel_dp_dual_mode_set_tmds_output(intel_hdmi, true);
33903389
intel_ddi_clk_select(encoder, crtc_state);
@@ -3411,9 +3410,9 @@ static void intel_ddi_pre_enable_hdmi(struct intel_atomic_state *state,
34113410

34123411
intel_ddi_enable_pipe_clock(encoder, crtc_state);
34133412

3414-
intel_dig_port->set_infoframes(encoder,
3415-
crtc_state->has_infoframe,
3416-
crtc_state, conn_state);
3413+
dig_port->set_infoframes(encoder,
3414+
crtc_state->has_infoframe,
3415+
crtc_state, conn_state);
34173416
}
34183417

34193418
static void intel_ddi_pre_enable(struct intel_atomic_state *state,

0 commit comments

Comments
 (0)