Commit 09b9563e authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/i915/display: rename I915_HAS_HOTPLUG() to HAS_HOTPLUG



Most of the other display feature check macros are just
HAS_<something>. Follow suit with hotplug check.

Reviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/c386ef007ae8bdda1bb9b1b353b1cd2957897842.1742481923.git.jani.nikula@intel.com
parent d22168b6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -877,7 +877,7 @@ intel_crt_detect(struct drm_connector *connector,

	wakeref = intel_display_power_get(display, encoder->power_domain);

	if (I915_HAS_HOTPLUG(display)) {
	if (HAS_HOTPLUG(display)) {
		/* We can not rely on the HPD pin always being correctly wired
		 * up, for example many KVM do not pass it through, and so
		 * only trust an assertion that the monitor is connected.
@@ -901,7 +901,7 @@ intel_crt_detect(struct drm_connector *connector,
	 * broken monitor (without edid) to work behind a broken kvm (that fails
	 * to have the right resistors for HP detection) needs to fix this up.
	 * For now just bail out. */
	if (I915_HAS_HOTPLUG(display)) {
	if (HAS_HOTPLUG(display)) {
		status = connector_status_disconnected;
		goto out;
	}
@@ -1081,7 +1081,7 @@ void intel_crt_init(struct intel_display *display)

	crt->base.power_domain = POWER_DOMAIN_PORT_CRT;

	if (I915_HAS_HOTPLUG(display) &&
	if (HAS_HOTPLUG(display) &&
	    !dmi_check_system(intel_spurious_crt_detect)) {
		crt->base.hpd_pin = HPD_CRT;
		crt->base.hotplug = intel_encoder_hotplug;
+1 −1
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ struct intel_display_platforms {
#define HAS_GMBUS_BURST_READ(__display)	(DISPLAY_VER(__display) >= 10 || (__display)->platform.kabylake)
#define HAS_GMBUS_IRQ(__display)	(DISPLAY_VER(__display) >= 4)
#define HAS_GMCH(__display)		(DISPLAY_INFO(__display)->has_gmch)
#define HAS_HOTPLUG(__display)		(DISPLAY_INFO(__display)->has_hotplug)
#define HAS_HW_SAGV_WM(__display)	(DISPLAY_VER(__display) >= 13 && !(__display)->platform.dgfx)
#define HAS_IPC(__display)		(DISPLAY_INFO(__display)->has_ipc)
#define HAS_IPS(__display)		((__display)->platform.haswell_ult || (__display)->platform.broadwell)
@@ -192,7 +193,6 @@ struct intel_display_platforms {
					 HAS_DSC(__display))
#define HAS_VRR(__display)		(DISPLAY_VER(__display) >= 11)
#define INTEL_NUM_PIPES(__display)	(hweight8(DISPLAY_RUNTIME_INFO(__display)->pipe_mask))
#define I915_HAS_HOTPLUG(__display)	(DISPLAY_INFO(__display)->has_hotplug)
#define OVERLAY_NEEDS_PHYSICAL(__display)	(DISPLAY_INFO(__display)->overlay_needs_physical)
#define SUPPORTS_TV(__display)		(DISPLAY_INFO(__display)->supports_tv)

+1 −1
Original line number Diff line number Diff line
@@ -1900,7 +1900,7 @@ void vlv_display_irq_reset(struct intel_display *display)

void i9xx_display_irq_reset(struct intel_display *display)
{
	if (I915_HAS_HOTPLUG(display)) {
	if (HAS_HOTPLUG(display)) {
		i915_hotplug_interrupt_update(display, 0xffffffff, 0);
		intel_de_rmw(display, PORT_HOTPLUG_STAT(display), 0, 0);
	}
+1 −1
Original line number Diff line number Diff line
@@ -1481,7 +1481,7 @@ void intel_hotplug_irq_init(struct intel_display *display)
	intel_hpd_init_early(display);

	if (HAS_GMCH(display)) {
		if (I915_HAS_HOTPLUG(display))
		if (HAS_HOTPLUG(display))
			display->funcs.hotplug = &i915_hpd_funcs;
	} else {
		if (HAS_PCH_DG2(i915))
+1 −1
Original line number Diff line number Diff line
@@ -2036,7 +2036,7 @@ static u16 intel_sdvo_get_hotplug_support(struct intel_sdvo *intel_sdvo)
	struct intel_display *display = to_intel_display(&intel_sdvo->base);
	u16 hotplug;

	if (!I915_HAS_HOTPLUG(display))
	if (!HAS_HOTPLUG(display))
		return 0;

	/*
Loading