]> git.baikalelectronics.ru Git - kernel.git/commit
iio: dma-buffer: Cleanup buffer.h/buffer_impl.h includes
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 1 Apr 2020 16:57:06 +0000 (18:57 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:31 +0000 (16:56 +0100)
commit911bb6c8051075a61b3e9e0a76807e6b24298f0e
treeb97ecb350e906a1447ea15a96cecf05403c19fc9
parent17211d2557b592a98eae1eddd70139161994825f
iio: dma-buffer: Cleanup buffer.h/buffer_impl.h includes

The IIO DMA buffer is a DMA buffer implementation. As such it should
include buffer_impl.h rather than buffer.h.

The include to buffer.h in buffer-dma.h should be buffer_impl.h so it has
access to the struct iio_buffer definition. The code currently only works
because all places that use buffer-dma.h include buffer_impl.h before it.

The include to buffer.h in industrialio-buffer-dma.c  can be removed since
those file does not reference any of buffer consumer functions.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dma.c
include/linux/iio/buffer-dma.h