]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: powermac: convert of_node usage to fwnode
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 19 May 2025 11:13:12 +0000 (13:13 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 20 May 2025 20:49:21 +0000 (22:49 +0200)
'of_node' in i2c_boardinfo is deprecated in favor of 'fwnode'. The I2C
core handles them equally, so simply convert this driver to fwnode.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/busses/i2c-powermac.c

index 9a867c817db01eaf5ac6b8b3023667aad04ed782..f99a2cc721a81dc328bc03ea88ff959cafe0f05a 100644 (file)
@@ -349,7 +349,7 @@ static void i2c_powermac_register_devices(struct i2c_adapter *adap,
                /* Fill out the rest of the info structure */
                info.addr = addr;
                info.irq = irq_of_parse_and_map(node, 0);
-               info.of_node = of_node_get(node);
+               info.fwnode = of_fwnode_handle(of_node_get(node));
 
                newdev = i2c_new_client_device(adap, &info);
                if (IS_ERR(newdev)) {