drm/i915: Rename intel_wakeref_[is]_active

Our general rule is to use is/has as the verb for boolean functions,
rename intel_wakeref_active to intel_wakeref_is_active so the question
being asked is clear.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190625130128.11009-6-chris@chris-wilson.co.uk
This commit is contained in:
Chris Wilson
2019-06-25 14:01:14 +01:00
parent 0c91621cad
commit 5f22e5b311
6 changed files with 16 additions and 6 deletions

View File

@@ -128,13 +128,13 @@ intel_wakeref_unlock(struct intel_wakeref *wf)
}
/**
* intel_wakeref_active: Query whether the wakeref is currently held
* intel_wakeref_is_active: Query whether the wakeref is currently held
* @wf: the wakeref
*
* Returns: true if the wakeref is currently held.
*/
static inline bool
intel_wakeref_active(struct intel_wakeref *wf)
intel_wakeref_is_active(const struct intel_wakeref *wf)
{
return READ_ONCE(wf->wakeref);
}