Lars-Peter Clausen | 08d6005 | 2012-08-17 16:57:00 +0100 | [diff] [blame] | 1 | #ifndef __LINUX_IIO_KFIFO_BUF_H__ |
| 2 | #define __LINUX_IIO_KFIFO_BUF_H__ |
Jonathan Cameron | b174baf | 2011-02-11 13:09:10 +0000 | [diff] [blame] | 3 | |
| 4 | #include <linux/kfifo.h> |
Jonathan Cameron | 06458e2 | 2012-04-25 15:54:58 +0100 | [diff] [blame] | 5 | #include <linux/iio/iio.h> |
| 6 | #include <linux/iio/buffer.h> |
Jonathan Cameron | b174baf | 2011-02-11 13:09:10 +0000 | [diff] [blame] | 7 | |
Karol Wrona | 7ab374a | 2014-12-19 18:39:24 +0100 | [diff] [blame] | 8 | struct iio_buffer *iio_kfifo_allocate(void); |
Jonathan Cameron | 14555b1 | 2011-09-21 11:15:57 +0100 | [diff] [blame] | 9 | void iio_kfifo_free(struct iio_buffer *r); |
Jonathan Cameron | b174baf | 2011-02-11 13:09:10 +0000 | [diff] [blame] | 10 | |
Karol Wrona | 780103f | 2014-12-19 18:39:25 +0100 | [diff] [blame^] | 11 | struct iio_buffer *devm_iio_kfifo_allocate(struct device *dev); |
| 12 | void devm_iio_kfifo_free(struct device *dev, struct iio_buffer *r); |
| 13 | |
Lars-Peter Clausen | 08d6005 | 2012-08-17 16:57:00 +0100 | [diff] [blame] | 14 | #endif |