blob: 764659e01b68cdf2f865f0cd4aa519f698943d56 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Lars-Peter Clausen08d60052012-08-17 16:57:00 +01002#ifndef __LINUX_IIO_KFIFO_BUF_H__
3#define __LINUX_IIO_KFIFO_BUF_H__
Jonathan Cameronb174baf2011-02-11 13:09:10 +00004
Jonathan Cameron8abd5ba2017-01-02 19:28:30 +00005struct iio_buffer;
6struct device;
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