]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
staging: iio: kfifo buffer - push structure definition down into implementation.
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 30 Aug 2011 11:32:43 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 22:59:09 +0000 (15:59 -0700)
Nothing other than the implementation needs to know about this.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/kfifo_buf.c
drivers/staging/iio/kfifo_buf.h

index 6002368fdcfaa465bbe11cfbbe4f04a34a718bb1..3c9516b2a670727de8efa9be762fa00096c8b9f2 100644 (file)
@@ -8,6 +8,14 @@
 
 #include "kfifo_buf.h"
 
+struct iio_kfifo {
+       struct iio_ring_buffer ring;
+       struct kfifo kf;
+       int use_count;
+       int update_needed;
+       struct mutex use_lock;
+};
+
 #define iio_to_kfifo(r) container_of(r, struct iio_kfifo, ring)
 
 static inline int __iio_allocate_kfifo(struct iio_kfifo *buf,
index aac30539b2c67e4a5d408e05d5a83038429ed355..fb48523748e68e00e59d93f1108e29f58ec9806e 100644 (file)
@@ -3,14 +3,6 @@
 #include "iio.h"
 #include "ring_generic.h"
 
-struct iio_kfifo {
-       struct iio_ring_buffer ring;
-       struct kfifo kf;
-       int use_count;
-       int update_needed;
-       struct mutex use_lock;
-};
-
 extern const struct iio_ring_access_funcs kfifo_access_funcs;
 
 struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);