drm/i915: fold in __intel_power_well_get/put functions
authorImre Deak <imre.deak@intel.com>
Tue, 4 Mar 2014 17:22:51 +0000 (19:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:46 +0000 (22:36 +0100)
commit70bf407c8deb5d2e26468a99f1af19a166bb89e7
treed147808aa3b4f606d6695680db5f2d007b171b81
parent8f670bb15a69e1186098454beb1b43dc1d923a24
drm/i915: fold in __intel_power_well_get/put functions

These functions are used only by a single call site and are simple
enough to just fold them in.

Note that in later patches the parts folded in here are further
simplified as we'll remove hsw_{disable,enable}_package_c8 and the NULL
check of the power well enable/disable handlers. All this means that at
the end intel_display_power_get/put() becomes more understandable as we
don't need to jump between two functions when reading the code.

No functional change.

v2:
- clarify the rational for the change (Chris)

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/intel_pm.c