printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / iio / kfifo_buf.h
blob22874da0c8be96ea8f29784499568fa423159314
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LINUX_IIO_KFIFO_BUF_H__
3 #define __LINUX_IIO_KFIFO_BUF_H__
5 struct iio_buffer;
6 struct iio_buffer_setup_ops;
7 struct iio_dev;
8 struct iio_dev_attr;
9 struct device;
11 struct iio_buffer *iio_kfifo_allocate(void);
12 void iio_kfifo_free(struct iio_buffer *r);
14 int devm_iio_kfifo_buffer_setup_ext(struct device *dev,
15 struct iio_dev *indio_dev,
16 const struct iio_buffer_setup_ops *setup_ops,
17 const struct iio_dev_attr **buffer_attrs);
19 #define devm_iio_kfifo_buffer_setup(dev, indio_dev, setup_ops) \
20 devm_iio_kfifo_buffer_setup_ext((dev), (indio_dev), (setup_ops), NULL)
22 #endif