iio: buffer-dma: split iio_dma_buffer_fileio_free() function
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Tue, 19 Dec 2023 17:50:03 +0000 (18:50 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 Dec 2023 11:30:59 +0000 (11:30 +0000)
commit996b2e046aee6e34f36c66254db128c10d6116f0
tree80c8ecbc5dda2126144b80a87e9441959fa9239d
parentee9ec49046951eff704752669f0c388b506ddbdf
iio: buffer-dma: split iio_dma_buffer_fileio_free() function

This change splits the logic into a separate function, which will be
re-used later.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20231219175009.65482-3-paul@crapouillou.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dma.c