dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/2] dmaengine: stm32-dmamux: Switch to use device_property_count_u32()
@ 2019-07-23 19:07 Andy Shevchenko
  2019-07-23 19:07 ` [PATCH v1 2/2] dmaengine: stm32-mdma: " Andy Shevchenko
  2019-07-29  6:55 ` [PATCH v1 1/2] dmaengine: stm32-dmamux: " Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2019-07-23 19:07 UTC (permalink / raw)
  To: Vinod Koul, dmaengine, Maxime Coquelin, Alexandre Torgue; +Cc: Andy Shevchenko

Use use device_property_count_u32() directly, that makes code neater.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/dma/stm32-dmamux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c
index b552949da14b..3c89bd39e096 100644
--- a/drivers/dma/stm32-dmamux.c
+++ b/drivers/dma/stm32-dmamux.c
@@ -185,8 +185,7 @@ static int stm32_dmamux_probe(struct platform_device *pdev)
 	if (!node)
 		return -ENODEV;
 
-	count = device_property_read_u32_array(&pdev->dev, "dma-masters",
-					       NULL, 0);
+	count = device_property_count_u32(&pdev->dev, "dma-masters");
 	if (count < 0) {
 		dev_err(&pdev->dev, "Can't get DMA master(s) node\n");
 		return -ENODEV;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-29  6:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 19:07 [PATCH v1 1/2] dmaengine: stm32-dmamux: Switch to use device_property_count_u32() Andy Shevchenko
2019-07-23 19:07 ` [PATCH v1 2/2] dmaengine: stm32-mdma: " Andy Shevchenko
2019-07-29  6:55 ` [PATCH v1 1/2] dmaengine: stm32-dmamux: " Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).