iio: kfifo: un-export devm_iio_kfifo_allocate() function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 15 Feb 2021 10:40:24 +0000 (12:40 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 11 Mar 2021 20:47:01 +0000 (20:47 +0000)
commit99f6e8215b627730e2e6d371430a1f81e8ed6c27
tree3b27a922e57fe3cacaa0faeadabcd609e45e26e9
parente03ed893e2cf7305183b3314ae80daa1e97667b2
iio: kfifo: un-export devm_iio_kfifo_allocate() function

At this point all drivers should use devm_iio_kfifo_buffer_setup() instead
of manually allocating via devm_iio_kfifo_allocate() and assigning ops and
modes.

With this change, the devm_iio_kfifo_allocate() will be made private to the
IIO core, since all drivers should call either
devm_iio_kfifo_buffer_setup() or devm_iio_triggered_buffer_setup() to
create a kfifo buffer.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210215104043.91251-6-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/driver-api/driver-model/devres.rst
drivers/iio/buffer/kfifo_buf.c
include/linux/iio/kfifo_buf.h