Skip to content

Commit 7cbd0f7

Browse files
committed
drm/i915/display: Use struct intel_display instead of struct drm_i915_private
Let's start using struct intel_display instead of struct drm_i915_private when introducing new code. No functional changes. v2: Drop tc_to_intel_display() helper function (Jani) Signed-off-by: Mika Kahola <[email protected]> Reviewed-by: Chaitanya Kumar Borah <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7124e13 commit 7cbd0f7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,23 +1043,22 @@ static void xelpdp_tc_power_request_wa(struct intel_display *display, bool enabl
10431043

10441044
static void __xelpdp_tc_phy_enable_tcss_power(struct intel_tc_port *tc, bool enable)
10451045
{
1046-
struct drm_i915_private *i915 = tc_to_i915(tc);
1047-
struct intel_display *display = &i915->display;
1046+
struct intel_display *display = to_intel_display(tc->dig_port);
10481047
enum port port = tc->dig_port->base.port;
1049-
i915_reg_t reg = XELPDP_PORT_BUF_CTL1(i915, port);
1048+
i915_reg_t reg = XELPDP_PORT_BUF_CTL1(display, port);
10501049
u32 val;
10511050

10521051
assert_tc_cold_blocked(tc);
10531052

10541053
if (DISPLAY_VER(display) == 30)
10551054
xelpdp_tc_power_request_wa(display, enable);
10561055

1057-
val = intel_de_read(i915, reg);
1056+
val = intel_de_read(display, reg);
10581057
if (enable)
10591058
val |= XELPDP_TCSS_POWER_REQUEST;
10601059
else
10611060
val &= ~XELPDP_TCSS_POWER_REQUEST;
1062-
intel_de_write(i915, reg, val);
1061+
intel_de_write(display, reg, val);
10631062
}
10641063

10651064
static bool xelpdp_tc_phy_enable_tcss_power(struct intel_tc_port *tc, bool enable)

0 commit comments

Comments
 (0)