Thread (55 messages) 55 messages, 8 authors, 2025-05-29

Re: [PATCH v2 08/26] pinctrl: cs42l43: Use fw_devlink_set_device()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-05-07 15:06:17
Also in: imx, linux-acpi, linux-clk, linux-devicetree, linux-i2c, linux-pci, linux-spi, lkml

On Wed, May 07, 2025 at 09:12:50AM +0200, Herve Codina wrote:
The code set directly fwnode->dev field.

Use the dedicated fw_devlink_set_device() helper to perform this
operation.
...
 		fwnode = fwnode_get_named_child_node(fwnode, "pinctrl");
 
 		if (fwnode && !fwnode->dev)
Why do we bother checking the fwnode->dev here?
Just wondering... Hopefully the original author of the code can explain what is
going on here.
-			fwnode->dev = priv->dev;
+			fw_devlink_set_device(fwnode, priv->dev);
 	}
-- 
With Best Regards,
Andy Shevchenko


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help