summaryrefslogtreecommitdiff
path: root/include/linux/spi/spi.h
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2021-06-25 10:52:11 +0530
committerMark Brown <broonie@kernel.org>2021-06-25 12:26:49 +0100
commitb470e10eb43f19e08245cd87dd3192a8141cfbb5 (patch)
treea773f13ce4c5fa815d661534cd3aadf75b7509a3 /include/linux/spi/spi.h
parentc58db2abb19fd2bf23fb25bb3630a9f540df6042 (diff)
spi: core: add dma_map_dev for dma device
Some controllers like qcom geni need the parent device to be used for dma mapping, so add a dma_map_dev field and let drivers fill this to be used as mapping device Signed-off-by: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20210625052213.32260-4-vkoul@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi/spi.h')
-rw-r--r--include/linux/spi/spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 3ada36175e5f..97b8d12b5f2b 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -588,6 +588,7 @@ struct spi_controller {
bool (*can_dma)(struct spi_controller *ctlr,
struct spi_device *spi,
struct spi_transfer *xfer);
+ struct device *dma_map_dev;
/*
* These hooks are for drivers that want to use the generic