[PATCH 00/10] Remove class_find_device_by_of_node in favor of finding by firmware node
Dmitry Torokhov <[email protected]> Sun, 22 Mar 2026 18:54:18 -0700
| Newsgroups | org.kernel.vger.linux-fpga,dev.linux.lists.driver-core,org.infradead.lists.linux-phy,org.kernel.vger.linux-kernel,org.kernel.vger.linux-leds,org.kernel.vger.linux-spi,org.kernel.vger.netdev |
|---|---|
| Message-ID | <20260322-remove-device-find-by-of-node-v1-0-b72eb22a1215@gmail.com> |
Firmware nodes are generalization of OF device nodes and generic APIs should offer only fwnode variants instead of providing firmware-specific handlers. This series switches all users of class_find_device_by_of_node() to class_find_device_by_fwnode() and removes the OF variant. I believe this can be applied through individual subsystems and then the last patch can go into the driver core. Signed-off-by: Dmitry Torokhov <[email protected]> --- Dmitry Torokhov (10): net: wan: framer: switch to using class_find_device_by_fwnode() phy: core: switch to using class_find_device_by_fwnode() spi: switch to using class_find_device_by_fwnode() regulator: of: switch to using class_find_device_by_fwnode() leds: led-class: switch to using class_find_device_by_fwnode() mux: switch to using class_find_device_by_fwnode() net: phy: switch to using class_find_device_by_fwnode() fpga: bridge: switch to using class_find_device_by_fwnode() fpga: manager: switch to using class_find_device_by_fwnode() driver core: class: remove class_find_device_by_of_node() drivers/fpga/fpga-bridge.c | 4 +++- drivers/fpga/fpga-mgr.c | 3 ++- drivers/leds/led-class.c | 2 +- drivers/mux/core.c | 2 +- drivers/net/phy/mdio_bus_provider.c | 4 +++- drivers/net/wan/framer/framer-core.c | 2 +- drivers/phy/phy-core.c | 3 ++- drivers/regulator/of_regulator.c | 2 +- drivers/spi/spi.c | 6 ++++-- include/linux/device/class.h | 12 ------------ 10 files changed, 18 insertions(+), 22 deletions(-) --- base-commit: 785f0eb2f85decbe7c1ef9ae922931f0194ffc2e change-id: 20260220-remove-device-find-by-of-node-077784fa109c Thanks. -- Dmitry