]> www.infradead.org Git - users/jedix/linux-maple.git/commit
comedi: remove the mapping of the Comedi buffer in vmalloc address space
authorIan Abbott <abbotti@mev.co.uk>
Tue, 15 Apr 2025 11:35:58 +0000 (12:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 13:53:19 +0000 (15:53 +0200)
commit5117f28a7d78d00a44d03463115a0f295dbbb1ff
tree6e05a8620ad468ffec943c7f0b34d300cbc26361
parente7199b6b591eead7dc516a639a5b618f1e3cd207
comedi: remove the mapping of the Comedi buffer in vmalloc address space

Now that all the code that accesses the Comedi buffer data does so
page-by-page, using the `virt_addr` member of `struct comedi_buf_page`
to point to the data of each page, do not linearly map the buffer into
vmalloc address space (pointed to by the `prealloc_buf` member of
`struct comedi_async`).  That was only done for convenience, but was not
done for those drivers that need a DMA coherent buffer, which is
allocated in a single chunk.  Remove the `prealloc_buf` member as it is
no longer used.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20250415114008.5977-4-abbotti@mev.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/comedi/comedi_buf.c
include/linux/comedi/comedidev.h