commit | 56f5f7007dee07bdc109061c87a94eadd58e64b8 | [log] [tgz] |
---|---|---|
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | Mon Nov 30 16:23:44 2015 +0200 |
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | Wed Dec 02 11:22:57 2015 +0200 |
tree | 16088c817db22d3811e43f9ed6d78441e8fd949b | |
parent | 83d83392e3e5432a9240e6b060119f01d27f2a30 [diff] [blame] |
drm/i915: Add HAS_PCH_LPT_H() We have HAS_PCH_LPT_LP() already, so add HAS_PCH_LPT_H() and use it where appropriate. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1448893432-6978-4-git-send-email-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 2805f0d..02bddb0 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -711,7 +711,7 @@ if (index) return 0; return DIV_ROUND_CLOSEST(dev_priv->cdclk_freq, 2000); - } else if (dev_priv->pch_id == INTEL_PCH_LPT_DEVICE_ID_TYPE) { + } else if (HAS_PCH_LPT_H(dev_priv)) { /* Workaround for non-ULT HSW */ switch (index) { case 0: return 63;