Skip to content

Commit 963ed4e

Browse files
committed
drm/i915/dp: hide dp_to_i915() inside intel_dp.c
Now that only intel_dp.c uses dp_to_i915(), hide it there. This removes a header dependency on to_i915(). Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/e214aa6991aea4fc878b36dcd3eaece9f1fba592.1725012870.git.jani.nikula@intel.com
1 parent 7134cc2 commit 963ed4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/i915/display/intel_display_types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,8 +2085,6 @@ dp_to_lspcon(struct intel_dp *intel_dp)
20852085
return &dp_to_dig_port(intel_dp)->lspcon;
20862086
}
20872087

2088-
#define dp_to_i915(__intel_dp) to_i915(dp_to_dig_port(__intel_dp)->base.base.dev)
2089-
20902088
static inline struct intel_digital_port *
20912089
hdmi_to_dig_port(struct intel_hdmi *intel_hdmi)
20922090
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
#include "intel_vrr.h"
9191
#include "intel_crtc_state_dump.h"
9292

93+
#define dp_to_i915(__intel_dp) to_i915(dp_to_dig_port(__intel_dp)->base.base.dev)
94+
9395
/* DP DSC throughput values used for slice count calculations KPixels/s */
9496
#define DP_DSC_PEAK_PIXEL_RATE 2720000
9597
#define DP_DSC_MAX_ENC_THROUGHPUT_0 340000

0 commit comments

Comments
 (0)