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

* [PATCH v1 2/2] dmaengine: stm32-mdma: Switch to use device_property_count_u32()
  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 ` Andy Shevchenko
  2019-07-29  6:55 ` [PATCH v1 1/2] dmaengine: stm32-dmamux: " Vinod Koul
  1 sibling, 0 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-mdma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c
index d6e919d3936a..0d56fde78c1f 100644
--- a/drivers/dma/stm32-mdma.c
+++ b/drivers/dma/stm32-mdma.c
@@ -1555,8 +1555,7 @@ static int stm32_mdma_probe(struct platform_device *pdev)
 			 nr_requests);
 	}
 
-	count = device_property_read_u32_array(&pdev->dev, "st,ahb-addr-masks",
-					       NULL, 0);
+	count = device_property_count_u32(&pdev->dev, "st,ahb-addr-masks");
 	if (count < 0)
 		count = 0;
 
-- 
2.20.1


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

* Re: [PATCH v1 1/2] dmaengine: stm32-dmamux: Switch to use device_property_count_u32()
  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 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2019-07-29  6:55 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: dmaengine, Maxime Coquelin, Alexandre Torgue

On 23-07-19, 22:07, Andy Shevchenko wrote:
> Use use device_property_count_u32() directly, that makes code neater.

Applied both, thanks

-- 
~Vinod

^ permalink raw reply	[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).