drm/i915: Simplify ilk_get_aux_clock_divider
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 31 Mar 2015 11:11:59 +0000 (14:11 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 31 Mar 2015 15:28:50 +0000 (17:28 +0200)
commit469d4b2a4ed7a255ffef31fad9d56bb6f7ac1213
treee23d418b04489c409e4902c9ae486586c8ec693c
parenta7c66cd86ae0a2377b6efda56b93b26ce1f4322e
drm/i915: Simplify ilk_get_aux_clock_divider

Now that we are "extracting" the cdclk frequency on ILK-IVB we
can also simplify ilk_get_aux_clock_divider() to calculate the
divider based on cdclk instead of hardcoding the values.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c