Skip to contentSkip to conversation

misc: ti_fpc202: Switch to of_fwnode_handle()

PATCH In review Jiri Slaby (SUSE) 2 participants 2 messages May 12, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: ti_fpc202: Switch to of_fwnode_handle()

of_node_to_fwnode() is an irqdomain's reimplementation of the "officially" defined of_fwnode_handle(). The former is in the process of being removed, so use the latter instead.

Fixes 1e5c9b1efa1c ("misc: add FPC202 dual port controller driver")
Cc Romain Gantois <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Wolfram Sang <[email protected]>
---
 drivers/misc/ti_fpc202.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ti_fpc202.c +1 -1
index b9c9ee4bfc4e..cc597682b89c 100644
@@ -284,7 +284,7 @@ static int fpc202_probe_port(struct fpc202_priv *priv, struct device_node *i2c_h
 
 	desc.chan_id = port_id;
 	desc.parent = dev;
-	desc.bus_handle = of_node_to_fwnode(i2c_handle);
+	desc.bus_handle = of_fwnode_handle(i2c_handle);
 	desc.num_aliases = FPC202_ALIASES_PER_PORT;
 
 	fpc202_fill_alias_table(priv->client, aliases, port_id);
Signature · 1 line
2.49.0
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hello Jiri,

Quoted 21 lines · On Monday, 12 May 2025 10:58:52 CEST Jiri Slaby (SUSE) wrote:

of_node_to_fwnode() is an irqdomain's reimplementation of the "officially" defined of_fwnode_handle(). The former is in the process of being removed, so use the latter instead.

Fixes 1e5c9b1efa1c ("misc: add FPC202 dual port controller driver")
Cc Romain Gantois <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Wolfram Sang <[email protected]>
---
 drivers/misc/ti_fpc202.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ti_fpc202.c +0 -0
index b9c9ee4bfc4e..cc597682b89c 100644
@@ -284,7 +284,7 @@ static int fpc202_probe_port(struct fpc202_priv *priv,

struct device_node *i2c_h

drivers/misc/ti_fpc202.c static int fpc202_probe_port(struct fpc202_priv *priv, struct device_node *i2c_h · line 290

Quoted 7 lines
drivers/misc/ti_fpc202.c +1 -1
 	desc.chan_id = port_id;
 	desc.parent = dev;
-	desc.bus_handle = of_node_to_fwnode(i2c_handle);
+	desc.bus_handle = of_fwnode_handle(i2c_handle);
 	desc.num_aliases = FPC202_ALIASES_PER_PORT;
 
 	fpc202_fill_alias_table(priv->client, aliases, port_id);

Looks good to me.