Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Lars-Peter Clausen | 08d6005 | 2012-08-17 16:57:00 +0100 | [diff] [blame] | 2 | #ifndef __LINUX_IIO_KFIFO_BUF_H__ |
| 3 | #define __LINUX_IIO_KFIFO_BUF_H__ |
Jonathan Cameron | b174baf | 2011-02-11 13:09:10 +0000 | [diff] [blame] | 4 | |
Jonathan Cameron | 8abd5ba | 2017-01-02 19:28:30 +0000 | [diff] [blame] | 5 | struct iio_buffer; |
| 6 | struct device; |
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 |