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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user