All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] of: unittest: Switch to use fwnode instead of of_node
@ 2022-06-29 11:38 Andy Shevchenko
  2022-06-29 16:05 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2022-06-29 11:38 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, devicetree, linux-kernel, linux-gpio
  Cc: Rob Herring, Frank Rowand, Linus Walleij, Bartosz Golaszewski,
	Andy Shevchenko

GPIO library now accepts fwnode as a firmware node, so
switch the module to use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/of/unittest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index 7f6bba18c515..03052ffb16e2 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -1602,7 +1602,7 @@ static int unittest_gpio_probe(struct platform_device *pdev)
 
 	platform_set_drvdata(pdev, devptr);
 
-	devptr->chip.of_node = pdev->dev.of_node;
+	devptr->chip.fwnode = dev_fwnode(&pdev->dev);
 	devptr->chip.label = "of-unittest-gpio";
 	devptr->chip.base = -1; /* dynamic allocation */
 	devptr->chip.ngpio = 5;
-- 
2.35.1


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

* Re: [PATCH v1 1/1] of: unittest: Switch to use fwnode instead of of_node
  2022-06-29 11:38 [PATCH v1 1/1] of: unittest: Switch to use fwnode instead of of_node Andy Shevchenko
@ 2022-06-29 16:05 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2022-06-29 16:05 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, devicetree, linux-kernel, linux-gpio
  Cc: Rob Herring, Frank Rowand, Linus Walleij, Bartosz Golaszewski

On Wed, Jun 29, 2022 at 02:38:39PM +0300, Andy Shevchenko wrote:
> GPIO library now accepts fwnode as a firmware node, so
> switch the module to use it.

Sorry for a spam, here is v3 of this series, this one shouldn't be considered.

-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2022-06-29 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 11:38 [PATCH v1 1/1] of: unittest: Switch to use fwnode instead of of_node Andy Shevchenko
2022-06-29 16:05 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.