diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-06-20 16:03:06 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-06-22 19:08:34 +0300 |
commit | b9eb89b21fa3f759d775fbd50236ece663771736 (patch) | |
tree | 373872657736d09a8f8546dcbcb26d89355e1cd8 /drivers/gpu/drm/i915/intel_sdvo.c | |
parent | 4a234c5fae1686c8327edeaabc0f2d6fb86db470 (diff) | |
download | linux-stable-b9eb89b21fa3f759d775fbd50236ece663771736.tar.gz linux-stable-b9eb89b21fa3f759d775fbd50236ece663771736.tar.bz2 linux-stable-b9eb89b21fa3f759d775fbd50236ece663771736.zip |
drm/i915: Use HAS_PCH_CPT() everywhere
We have a few cases comparing pch_type directly. Let's just replace
them with HAS_PCH_CPT() since CPT/PPT is what they're looking for.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170620130310.13245-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sdvo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 3f8f30b412cd..f902922d4ae6 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -1343,7 +1343,7 @@ static void intel_sdvo_pre_enable(struct intel_encoder *intel_encoder, sdvox |= (9 << 19) | SDVO_BORDER_ENABLE; } - if (INTEL_PCH_TYPE(dev_priv) >= PCH_CPT) + if (HAS_PCH_CPT(dev_priv)) sdvox |= SDVO_PIPE_SEL_CPT(crtc->pipe); else sdvox |= SDVO_PIPE_SEL(crtc->pipe); |