Merge remote-tracking branch 'omap_dss2/for-next'
[deliverable/linux.git] / include / linux / fence-array.h
index 86baaa45567ce54d9499292bb2d0770c786e93ba..a44794e508df8cd3e72a8b3e37ad1a56a6107cd2 100644 (file)
@@ -51,6 +51,16 @@ struct fence_array {
 
 extern const struct fence_ops fence_array_ops;
 
+/**
+ * fence_is_array - check if a fence is from the array subsclass
+ *
+ * Return true if it is a fence_array and false otherwise.
+ */
+static inline bool fence_is_array(struct fence *fence)
+{
+       return fence->ops == &fence_array_ops;
+}
+
 /**
  * to_fence_array - cast a fence to a fence_array
  * @fence: fence to cast to a fence_array
This page took 0.06554 seconds and 5 git commands to generate.