Skip to contentSkip to conversation

of: unittest: Switch to use fwnode instead of of_node

PATCH Superseded Andy Shevchenko 1 participant 2 messages Jun 29, 2022

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of: unittest: Switch to use fwnode instead of of_node

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

---
 drivers/of/unittest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/unittest.c +1 -1
index 7f6bba18c515..03052ffb16e2 100644
@@ -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;
Signature · 1 line
2.35.1
#1 lore raw
Quoted 2 lines · Andy Shevchenko

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.

Signature · 2 lines
With Best Regards,
Andy Shevchenko