drm/i915: make enable/disable rpm assert function use the rpm structure
[linux-block.git] / drivers / gpu / drm / i915 / intel_drv.h
index ac0bd60678645c9d443d8369839fd27f1b14e472..70ef9b7623f0f063e4da73d85ea413b156afc6f2 100644 (file)
@@ -1669,7 +1669,7 @@ assert_rpm_wakelock_held(struct i915_runtime_pm *rpm)
 
 /**
  * disable_rpm_wakeref_asserts - disable the RPM assert checks
- * @i915: i915 device instance
+ * @rpm: the i915_runtime_pm structure
  *
  * This function disable asserts that check if we hold an RPM wakelock
  * reference, while keeping the device-not-suspended checks still enabled.
@@ -1686,15 +1686,15 @@ assert_rpm_wakelock_held(struct i915_runtime_pm *rpm)
  * enable_rpm_wakeref_asserts().
  */
 static inline void
-disable_rpm_wakeref_asserts(struct drm_i915_private *i915)
+disable_rpm_wakeref_asserts(struct i915_runtime_pm *rpm)
 {
        atomic_add(INTEL_RPM_WAKELOCK_BIAS + 1,
-                  &i915->runtime_pm.wakeref_count);
+                  &rpm->wakeref_count);
 }
 
 /**
  * enable_rpm_wakeref_asserts - re-enable the RPM assert checks
- * @i915: i915 device instance
+ * @rpm: the i915_runtime_pm structure
  *
  * This function re-enables the RPM assert checks after disabling them with
  * disable_rpm_wakeref_asserts. It's meant to be used only in special
@@ -1704,10 +1704,10 @@ disable_rpm_wakeref_asserts(struct drm_i915_private *i915)
  * disable_rpm_wakeref_asserts().
  */
 static inline void
-enable_rpm_wakeref_asserts(struct drm_i915_private *i915)
+enable_rpm_wakeref_asserts(struct i915_runtime_pm *rpm)
 {
        atomic_sub(INTEL_RPM_WAKELOCK_BIAS + 1,
-                  &i915->runtime_pm.wakeref_count);
+                  &rpm->wakeref_count);
 }
 
 #endif /* __INTEL_DRV_H__ */