drm/i915/dp: split edp_panel_vdd_on() for reuse
authorJani Nikula <jani.nikula@intel.com>
Fri, 14 Mar 2014 14:51:13 +0000 (16:51 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 18 Mar 2014 09:53:15 +0000 (10:53 +0100)
commitadddaaf4885403a2f2180fb522b5b97e1469b328
tree611cd64aca52d6bf48f6d7d66852128d3af610b0
parent9dc4056026e0df30f6b29109e1e7a6958e7bea62
drm/i915/dp: split edp_panel_vdd_on() for reuse

Introduce _edp_panel_vdd_on() that returns true if the call enabled vdd,
and a matching disable is needed. Keep edp_panel_vdd_on() as a helper
for when it is expected the vdd is off.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c