]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Consolidate DDI clock reading out in a single function
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 12 Dec 2014 14:26:57 +0000 (14:26 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Dec 2014 14:43:02 +0000 (15:43 +0100)
commit31d969e4cf21416eed02bc3faca1de714c39a4cd
tree64605fbfac7038eb6fd3d75659f98c80a4c4f89b
parent481ca7341c4d1a9ee94b24c7caf328f4abe16edc
drm/i915: Consolidate DDI clock reading out in a single function

2 pieces of code need to read out the DDI clock: the DDI encoder and the
MST encoder .get_config() vfuncs.

Until now the SKL read out code was only in the former, so let's move
the pre and post SKL logic in intel_ddi_clock_get() and this this one
everywhere.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c