drm/i915: Extract a intel_power_well_enable() function
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 30 Jul 2015 21:20:26 +0000 (18:20 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Aug 2015 08:20:39 +0000 (10:20 +0200)
commite8ca932056c22dfce2fac00058203386b41f3af4
treeb9c49e9e81750f828232548c07ba6898386cdbf9
parent0667405b6061be2949d841f05647e550d48c2765
drm/i915: Extract a intel_power_well_enable() function

We need a bit book keeping around power wells' ops->enable(), namely a
nice debug message and updating hw_enabled. Let's introduce a
intel_power_well_enable() function to make sure all the callers do the
same things.

v2 (from Paulo):
  - s/i915_power_well_enable/intel_power_well_enable/ since everything
    else on this file uses intel_ instead of i915_.
  - Fix typo in commit message.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_runtime_pm.c