diff options
author | Vinod Koul <vkoul@kernel.org> | 2021-06-25 10:52:11 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-25 12:26:49 +0100 |
commit | b470e10eb43f19e08245cd87dd3192a8141cfbb5 (patch) | |
tree | a773f13ce4c5fa815d661534cd3aadf75b7509a3 /include/linux/spi/spi.h | |
parent | c58db2abb19fd2bf23fb25bb3630a9f540df6042 (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.h | 1 |
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 |