diff mbox series

[SAMPLE] dma: amba-pl08x: use string choices helper

Message ID 875xkppmlf.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State New
Headers show
Series [SAMPLE] dma: amba-pl08x: use string choices helper | expand

Commit Message

Kuninori Morimoto March 4, 2025, 2:15 a.m. UTC
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 drivers/dma/amba-pl08x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 38cdbca59485..bdabbc2ff7f8 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -2094,7 +2094,7 @@  static struct dma_async_tx_descriptor *pl08x_prep_dma_cyclic(
 	dev_dbg(&pl08x->adev->dev,
 		"%s prepare cyclic transaction of %zd/%zd bytes %s %s\n",
 		__func__, period_len, buf_len,
-		direction == DMA_MEM_TO_DEV ? "to" : "from",
+		str_to_from(direction == DMA_MEM_TO_DEV),
 		plchan->name);
 
 	txd = pl08x_init_txd(chan, direction, &slave_addr);