* [PATCH 1/1] media: m2m-deinterlace: use dmaengine_has_cap() instead of dma_has_cap()
@ 2026-11-11 17:22 Frank.Li
0 siblings, 0 replies; only message in thread
From: Frank.Li @ 2026-11-11 17:22 UTC (permalink / raw)
To: Mauro Carvalho Chehab, Frank Li, Hans Verkuil, Kees Cook,
Vinod Koul, Jacopo Mondi, Xu Rao,
open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB),
open list
Cc: imx
From: Frank Li <Frank.Li@nxp.com>
Replace the open-coded dma_has_cap(DMA_INTERLEAVE,
pcdev->dma_chan->device->cap_mask) with the dmaengine_has_cap()
helper, which encapsulates the capability check and takes the
dma_chan pointer directly.
No functional change and prepare to move struct dma_device to private.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/media/platform/m2m-deinterlace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c
index df291b5f7501f..33f05d2baed6a 100644
--- a/drivers/media/platform/m2m-deinterlace.c
+++ b/drivers/media/platform/m2m-deinterlace.c
@@ -924,7 +924,7 @@ static int deinterlace_probe(struct platform_device *pdev)
if (!pcdev->dma_chan)
return -ENODEV;
- if (!dma_has_cap(DMA_INTERLEAVE, pcdev->dma_chan->device->cap_mask)) {
+ if (!dmaengine_has_cap(pcdev->dma_chan, DMA_INTERLEAVE)) {
dev_err(&pdev->dev, "DMA does not support INTERLEAVE\n");
ret = -ENODEV;
goto rel_dma;
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-11 17:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 17:22 [PATCH 1/1] media: m2m-deinterlace: use dmaengine_has_cap() instead of dma_has_cap() Frank.Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®