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

Herve Codina
2025-05-07T07:13:42Z

The code set directly fwnode->dev field.

Use the dedicated fw_devlink_set_device() helper to perform this
operation.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/cirrus/pinctrl-cs42l43.c b/drivers/pinctrl/cirrus/pinctrl-cs42l43.c
index 628b60ccc2b0..8df85ec5a02e 100644
--- a/drivers/pinctrl/cirrus/pinctrl-cs42l43.c
+++ b/drivers/pinctrl/cirrus/pinctrl-cs42l43.c
@@ -561,7 +561,7 @@ static int cs42l43_pin_probe(struct platform_device *pdev)
fwnode = fwnode_get_named_child_node(fwnode, "pinctrl");

if (fwnode && !fwnode->dev)
- fwnode->dev = priv->dev;
+ fw_devlink_set_device(fwnode, priv->dev);
}

priv->gpio_chip.fwnode = fwnode;
--
2.49.0