]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Nuke LC_FREQ
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 4 Jun 2019 20:09:31 +0000 (23:09 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 12 Jun 2019 11:49:47 +0000 (14:49 +0300)
Get rid of the pointless LC_FREQ define.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190604200933.29417-3-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_ddi.c

index 1a9978f84c9a4f478019cd44e517bcbe723d3833..aa06f1bcea6120b3ca5bf8563a9400106e0e40d8 100644 (file)
@@ -1221,12 +1221,10 @@ intel_ddi_get_crtc_encoder(struct intel_crtc *crtc)
        return ret;
 }
 
-#define LC_FREQ 2700
-
 static int hsw_ddi_calc_wrpll_link(struct drm_i915_private *dev_priv,
                                   i915_reg_t reg)
 {
-       int refclk = LC_FREQ;
+       int refclk;
        int n, p, r;
        u32 wrpll;
 
@@ -1242,7 +1240,7 @@ static int hsw_ddi_calc_wrpll_link(struct drm_i915_private *dev_priv,
                refclk = 135;
                break;
        case WRPLL_REF_LCPLL:
-               refclk = LC_FREQ;
+               refclk = 2700;
                break;
        default:
                WARN(1, "bad wrpll refclk\n");