]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: Move HAS_LT_PHY() to intel_display_device.h
authorGustavo Sousa <gustavo.sousa@intel.com>
Tue, 2 Dec 2025 01:23:05 +0000 (17:23 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 2 Dec 2025 18:08:08 +0000 (10:08 -0800)
We will need to HAS_LT_PHY() that macro in code outside of LT PHY
implementation. Move its definition to intel_display_device.h.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20251202012306.9315-8-matthew.s.atwood@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/display/intel_display_device.h
drivers/gpu/drm/i915/display/intel_lt_phy.h

index 9affb6a53da457034ba878d18d820042a4322e4c..2455ec826abeeae79a5a168b0bcc51ce28fc451f 100644 (file)
@@ -187,6 +187,7 @@ struct intel_display_platforms {
 #define HAS_IPS(__display)             ((__display)->platform.haswell_ult || (__display)->platform.broadwell)
 #define HAS_LRR(__display)             (DISPLAY_VER(__display) >= 12)
 #define HAS_LSPCON(__display)          (IS_DISPLAY_VER(__display, 9, 10))
+#define HAS_LT_PHY(__display)          ((__display)->platform.novalake)
 #define HAS_MBUS_JOINING(__display)    ((__display)->platform.alderlake_p || DISPLAY_VER(__display) >= 14)
 #define HAS_MSO(__display)             (DISPLAY_VER(__display) >= 12)
 #define HAS_OVERLAY(__display)         (DISPLAY_INFO(__display)->has_overlay)
index 0820968e51b570355aeda37c58d1bf521331729c..7659c92b6c3c514733a7be2b4c15706dec3f1173 100644 (file)
@@ -42,6 +42,4 @@ void intel_xe3plpd_pll_enable(struct intel_encoder *encoder,
                              const struct intel_crtc_state *crtc_state);
 void intel_xe3plpd_pll_disable(struct intel_encoder *encoder);
 
-#define HAS_LT_PHY(display) ((display)->platform.novalake)
-
 #endif /* __INTEL_LT_PHY_H__ */