mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
f67c6c73cb
Among all the users of the kfifo buffers, no one uses the INDIO_BUFFER_HARDWARE mode. So let's take this as a general rule and simplify a little bit the internals - overall the documentation - by eliminating unused specific cases. Use the INDIO_BUFFER_SOFTWARE mode by default with kfifo buffers, which will basically mimic what all the "non direct" modes do. Cc: Benson Leung <bleung@chromium.org> Cc: Guenter Roeck <groeck@chromium.org> Cc: Jyoti Bhayana <jbhayana@google.com> Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com> Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> Cc: Michael Hennerich <Michael.Hennerich@analog.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20220207143840.707510-13-miquel.raynal@bootlin.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
21 lines
616 B
C
21 lines
616 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_IIO_KFIFO_BUF_H__
|
|
#define __LINUX_IIO_KFIFO_BUF_H__
|
|
|
|
struct iio_buffer;
|
|
struct iio_buffer_setup_ops;
|
|
struct iio_dev;
|
|
struct device;
|
|
|
|
struct iio_buffer *iio_kfifo_allocate(void);
|
|
void iio_kfifo_free(struct iio_buffer *r);
|
|
|
|
int devm_iio_kfifo_buffer_setup_ext(struct device *dev,
|
|
struct iio_dev *indio_dev,
|
|
const struct iio_buffer_setup_ops *setup_ops,
|
|
const struct attribute **buffer_attrs);
|
|
|
|
#define devm_iio_kfifo_buffer_setup(dev, indio_dev, setup_ops) \
|
|
devm_iio_kfifo_buffer_setup_ext((dev), (indio_dev), (setup_ops), NULL)
|
|
|
|
#endif
|