diff options
Diffstat (limited to 'drivers/staging/iio/kfifo_buf.h')
-rw-r--r-- | drivers/staging/iio/kfifo_buf.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/drivers/staging/iio/kfifo_buf.h b/drivers/staging/iio/kfifo_buf.h index aac30539b2c6..a15598bb9fdb 100644 --- a/drivers/staging/iio/kfifo_buf.h +++ b/drivers/staging/iio/kfifo_buf.h @@ -1,18 +1,10 @@ #include <linux/kfifo.h> #include "iio.h" -#include "ring_generic.h" +#include "buffer_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_buffer_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); -void iio_kfifo_free(struct iio_ring_buffer *r); +struct iio_buffer *iio_kfifo_allocate(struct iio_dev *indio_dev); +void iio_kfifo_free(struct iio_buffer *r); |