summaryrefslogtreecommitdiffstats
path: root/include/linux/iio/kfifo_buf.h
blob: 1683bc710d1476b5195fd92ac67513fcccf84333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __LINUX_IIO_KFIFO_BUF_H__
#define __LINUX_IIO_KFIFO_BUF_H__

#include <linux/kfifo.h>
#include <linux/iio/iio.h>
#include <linux/iio/buffer.h>

struct iio_buffer *iio_kfifo_allocate(void);
void iio_kfifo_free(struct iio_buffer *r);

struct iio_buffer *devm_iio_kfifo_allocate(struct device *dev);
void devm_iio_kfifo_free(struct device *dev, struct iio_buffer *r);

#endif
OpenPOWER on IntegriCloud