staging: iio: kfifo buffer - push structure definition down into implementation.
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>
This commit is contained in:
parent
fd776ba9ab
commit
a710cc77db
@ -8,6 +8,14 @@
|
|||||||
|
|
||||||
#include "kfifo_buf.h"
|
#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)
|
#define iio_to_kfifo(r) container_of(r, struct iio_kfifo, ring)
|
||||||
|
|
||||||
static inline int __iio_allocate_kfifo(struct iio_kfifo *buf,
|
static inline int __iio_allocate_kfifo(struct iio_kfifo *buf,
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
#include "iio.h"
|
#include "iio.h"
|
||||||
#include "ring_generic.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;
|
extern const struct iio_ring_access_funcs kfifo_access_funcs;
|
||||||
|
|
||||||
struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
|
struct iio_ring_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user