drm/i915/chv: use vlv_PLL_is_optimal in chv_find_best_dpll
authorImre Deak <imre.deak@intel.com>
Tue, 17 Mar 2015 09:40:05 +0000 (11:40 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Mar 2015 10:48:21 +0000 (11:48 +0100)
commit9ca3ba011b9f1bf7fc73a4e7dc0c9edec2aeb149
treeb7477fb4f93446b6e6a754797522dcec5250a491
parent24be4e4650de2fc323ee0737f945ad366b6c11cc
drm/i915/chv: use vlv_PLL_is_optimal in chv_find_best_dpll

Prepare chv_find_best_dpll to be used for BXT too, where we want to
consider the error between target and calculated frequency too when
choosing a better PLL configuration.

No functional change.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c