drm/i915: simplify intel_ddi_pll_select()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 22 Mar 2017 18:58:44 +0000 (15:58 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 22 Mar 2017 19:08:54 +0000 (16:08 -0300)
commit396a1200d8202f7cd154e26dcc47438e28ef6c70
treeb31ed9bab64fed1b4ba761694b4badbbcc1a64ed
parent8cbeb06dc6b584009d7492c667a3c9a4b96cdefa
drm/i915: simplify intel_ddi_pll_select()

Because {hsw,skl,bxt}_ddi_pll_select all pretty much do the same thing
in slightly different ways. Replace everything with a simple copy of
the function and inline it inside intle_ddi_pll_select().

v2: s/return pll/return pll != NULL/ (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1490209125-20046-1-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_ddi.c