Re: [PATCH net-next 07/10] net: phy: switch to using class_find_device_by_fwnode()

From: Andrew Lunn

Date: Sun Mar 22 2026 - 22:55:01 EST


> - d = class_find_device_by_of_node(&mdio_bus_class, mdio_bus_np);
> + d = class_find_device_by_fwnode(&mdio_bus_class,
> + of_fwnode_handle(mdio_bus_np));

When you look at this, why is it better?

Andew