drm/i915: Rewrite vlv_find_best_dpll()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Sep 2013 13:54:19 +0000 (16:54 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:46:51 +0000 (12:46 +0200)
commit6b4bf1c4952a65fae6b4043054b146642f031f19
treeb7c33d3dbc48a8b26404e427480dc884ae1b8ce7
parentc686122c638838ce7113aeb22e4f1c50446de6eb
drm/i915: Rewrite vlv_find_best_dpll()

Rewrite vlv_find_best_dpll() to use intel_clock_t rather than
an army of local variables.

Also extract the code to calculate the derived values into
vlv_clock().

v2: Split up the earlier fixes, extract vlv_clock()
v3: Initialize best_clock

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c