]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/lockref.h
Merge tag 'iio-fixes-for-4.0b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23...
[karo-tx-linux.git] / include / linux / lockref.h
index 4bfde0e99ed5169d7220204c39070faa387f57ab..b10b122dd09989be9bcf70f3700d22ffce0b3623 100644 (file)
@@ -28,12 +28,13 @@ struct lockref {
 #endif
                struct {
                        spinlock_t lock;
-                       unsigned int count;
+                       int count;
                };
        };
 };
 
 extern void lockref_get(struct lockref *);
+extern int lockref_put_return(struct lockref *);
 extern int lockref_get_not_zero(struct lockref *);
 extern int lockref_get_or_lock(struct lockref *);
 extern int lockref_put_or_lock(struct lockref *);