drm/i915: remove device field from struct power_well
authorImre Deak <imre.deak@intel.com>
Fri, 25 Oct 2013 14:36:49 +0000 (17:36 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 27 Oct 2013 19:29:57 +0000 (20:29 +0100)
commitb4ed448447970aab11ee33ac28716baaff68fbb8
tree8d47a2a0af95cbb79df9169ccc8ede6605208716
parentbaa707073b6f5374a917f86f4a681149cd39dc64
drm/i915: remove device field from struct power_well

The only real need for this field was in
i915_{request,release}_power_well, but there we can get at it by a
container_of magic. Also since in the future we'll have multiple power
wells each with its own power_well struct it makes sense to remove the
field from there where it'd be just redundancy.

Suggested-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.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