[PATCH 00/10] Remove class_find_device_by_of_node in favor of finding by firmware node

Dmitry Torokhov posted 10 patches 1 week, 4 days ago
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(-)
[PATCH 00/10] Remove class_find_device_by_of_node in favor of finding by firmware node
Posted by Dmitry Torokhov 1 week, 4 days ago
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 <dmitry.torokhov@gmail.com>
---
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