blob: 1683bc710d1476b5195fd92ac67513fcccf84333 [file] [log] [blame]
Lars-Peter Clausen08d60052012-08-17 16:57:00 +01001#ifndef __LINUX_IIO_KFIFO_BUF_H__
2#define __LINUX_IIO_KFIFO_BUF_H__
Jonathan Cameronb174baf2011-02-11 13:09:10 +00003
4#include <linux/kfifo.h>
Jonathan Cameron06458e22012-04-25 15:54:58 +01005#include <linux/iio/iio.h>
6#include <linux/iio/buffer.h>
Jonathan Cameronb174baf2011-02-11 13:09:10 +00007
Karol Wrona7ab374a2014-12-19 18:39:24 +01008struct iio_buffer *iio_kfifo_allocate(void);
Jonathan Cameron14555b12011-09-21 11:15:57 +01009void iio_kfifo_free(struct iio_buffer *r);
Jonathan Cameronb174baf2011-02-11 13:09:10 +000010
Karol Wrona780103f2014-12-19 18:39:25 +010011struct iio_buffer *devm_iio_kfifo_allocate(struct device *dev);
12void devm_iio_kfifo_free(struct device *dev, struct iio_buffer *r);
13
Lars-Peter Clausen08d60052012-08-17 16:57:00 +010014#endif