drm/i915: prepare for multiple power wells
authorImre Deak <imre.deak@intel.com>
Fri, 25 Oct 2013 14:36:47 +0000 (17:36 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 27 Oct 2013 16:37:42 +0000 (17:37 +0100)
commit83c00f55302219fdac1f8628e61f2b63cffc58d5
tree6a2c58ac00d5be182975d36b66d0a18168997763
parent8c7b72f20b5d197bf70e93e87046def20eaa3f36
drm/i915: prepare for multiple power wells

In the future we'll need to support multiple power wells, so prepare for
that here. Create a new power domains struct which contains all
power domain/well specific fields. Since we'll have one lock protecting
all power wells, move power_well->lock to the new struct too.

No functional change.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c