drm/i915: Factor out p2 divider selection for pre-ilk platforms
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 18 Jun 2015 10:47:22 +0000 (13:47 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jun 2015 13:45:05 +0000 (15:45 +0200)
commit3b1429d9458f5fc1abe57fb47b429290acb5d4d1
tree51c3ba3dc20ad65f0d798e5dcc7a47d0a4a7deb9
parent8c841e57cadee2d0de7a1ea81c987088fb6a17fd
drm/i915: Factor out p2 divider selection for pre-ilk platforms

The same dpll p2 divider selection is repeated three times in the
gen2-4 .find_dpll() functions. Factor it out.

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