drm/i915: use power domain api to check vga power state
authorImre Deak <imre.deak@intel.com>
Mon, 17 Feb 2014 22:02:16 +0000 (00:02 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Mar 2014 20:30:08 +0000 (21:30 +0100)
commit040987539448708c36ece11c985ee9f3166bb420
tree9c016120aac7ccf83ccd7b079c9f28de3bb86257
parente13192f6c1e4aa064adab3865af321392a303c87
drm/i915: use power domain api to check vga power state

This way we can reuse the check on other platforms too. Also factor out
a version of the function that doesn't check if the power is on, we'll
need to call this from within the power domain framework.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c