mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
@ 2026-11-11 20:27 Frank.Li
  0 siblings, 0 replies; only message in thread
From: Frank.Li @ 2026-11-11 20:27 UTC (permalink / raw)
  To: Han Xu, Haibo Chen, Mark Brown, open list:NXP XSPI DRIVER,
	open list:NXP XSPI DRIVER, open list
  Cc: imx, Frank Li

From: Frank Li <Frank.Li@nxp.com>

Use the dmaengine_get_copy_align() API function instead of directly
accessing rx->device->copy_align.

No functional change and prepare to move struct dma_device to private.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
 drivers/spi/spi-nxp-xspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-nxp-xspi.c b/drivers/spi/spi-nxp-xspi.c
index e532b2da54835..e8383fed461e5 100644
--- a/drivers/spi/spi-nxp-xspi.c
+++ b/drivers/spi/spi-nxp-xspi.c
@@ -824,7 +824,7 @@ static int nxp_xspi_dma_init(struct device *dev, struct nxp_xspi *xspi)
 
 	xspi->dma_rx = rx;
 	init_completion(&xspi->dma_rx_c);
-	xspi->dma_copy_align = 1 << rx->device->copy_align;
+	xspi->dma_copy_align = 1 << dmaengine_get_copy_align(rx);
 
 	return 0;
 }
-- 
2.43.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-11 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 20:27 [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API 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®