]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad9467: use DMA safe buffer for spi
authorNuno Sa <nuno.sa@analog.com>
Wed, 22 May 2024 12:54:05 +0000 (14:54 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:06 +0000 (19:53 +0100)
commit7a8e7f13f99b31c85b77b362cb7b7a23fead11d3
tree677eda078d8dd7e8ad41b10f7320afe76b6d164e
parentcba37c2e532dc234cc8ea1894f130ca39948d4a9
iio: adc: ad9467: use DMA safe buffer for spi

Make sure we use a DMA safe buffer (IIO_DMA_MINALIGN) for all the spi
transfers. Only relevant for writes since for reads
spi_write_then_read() is used which does not require DMA safe buffers.

Also note that for consistency, ad9467_spi_read() is also taking struct
ad9467_state as a parameter (even if not really needed).

Fixes: ad6797120238 ("iio: adc: ad9467: add support AD9467 ADC")
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240522-dev-ad9467-dma-v2-1-a37bec463632@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad9467.c