]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: stm32-dma3: introduce ddata2dev helper
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 21 Nov 2025 13:36:59 +0000 (14:36 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 16 Dec 2025 16:06:31 +0000 (21:36 +0530)
commit8be4f3cbe263d22053d7afea4efee2e7178eee21
tree5f89b9a04b1eb95b44ccf9bd989d6bb8572d3713
parentdea737e31c2c62df5a45871bfb4ceb90a112dbd8
dmaengine: stm32-dma3: introduce ddata2dev helper

The purpose of this helper is to 'standardize' device pointer retrieval,
similar to the chan2dev() helper.
ddata2dev() helper returns the device pointer from struct dma_device stored
in stm32_dma3_ddata structure.
Device pointer from struct dma_device has been initialized with &pdev->dev,
so the ddata2dev helper returns &pdev->dev.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://patch.msgid.link/20251121-dma3_improv-v2-4-76a207b13ea6@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32/stm32-dma3.c