drm/i915: s/IS_G4X && !IS_GM45/IS_G45/
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 14 Jun 2018 18:05:00 +0000 (21:05 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Jun 2018 20:21:26 +0000 (23:21 +0300)
We have IS_G45 these days. Let's use it instead of the
'IS_G4X && !IS_GM45' construct.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180614180500.2565-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c

index 87c72c39f409cb871c47781eb9fafae5ddb47696..a1ddd9f62bb8f6d6eaedcf2ec61f66af4e89ff67 100644 (file)
@@ -517,7 +517,7 @@ static bool intel_crt_detect_hotplug(struct drm_connector *connector)
         * to get a reliable result.
         */
 
-       if (IS_G4X(dev_priv) && !IS_GM45(dev_priv))
+       if (IS_G45(dev_priv))
                tries = 2;
        else
                tries = 1;
index afa0574c1908a5e857086904bd224669ae7ec98d..6ac6c8787dcf658fd44ec98b7b95f89afa09d1a0 100644 (file)
@@ -6421,7 +6421,7 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port,
         * 0xd.  Failure to do so will result in spurious interrupts being
         * generated on the port when a cable is not attached.
         */
-       if (IS_G4X(dev_priv) && !IS_GM45(dev_priv)) {
+       if (IS_G45(dev_priv)) {
                u32 temp = I915_READ(PEG_BAND_GAP_DATA);
                I915_WRITE(PEG_BAND_GAP_DATA, (temp & ~0xf) | 0xd);
        }
index 9a33432c1f6b2280463a5a787feb2ed0b37a20a7..3dd3ee259e7fbca068adf43b001a8c30d99a5bd8 100644 (file)
@@ -2341,7 +2341,7 @@ void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port,
         * 0xd.  Failure to do so will result in spurious interrupts being
         * generated on the port when a cable is not attached.
         */
-       if (IS_G4X(dev_priv) && !IS_GM45(dev_priv)) {
+       if (IS_G45(dev_priv)) {
                u32 temp = I915_READ(PEG_BAND_GAP_DATA);
                I915_WRITE(PEG_BAND_GAP_DATA, (temp & ~0xf) | 0xd);
        }