drm/i915: factor out intel_edp_panel_vdd_sanitize
authorImre Deak <imre.deak@intel.com>
Wed, 30 Jul 2014 12:57:31 +0000 (15:57 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Aug 2014 09:07:16 +0000 (11:07 +0200)
commitaba86890a1785d787bfe7a741f910a472280540a
tree99df058477d25fbc783c6e30a0d603571568d786
parent1381308bb1e24fd7906eab3f046654041546cce3
drm/i915: factor out intel_edp_panel_vdd_sanitize

This will be needed by an upcoming patch too that needs to sanitize the
VDD state during resume. The additional async disabling is only needed
for the resume path, here it doesn't make a difference since we enable
VDD right after the sanitize call.

v2:
- don't set intel_dp ptr for non-eDP encoders (Ville)

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