[PATCH 06/10] mux: switch to using class_find_device_by_fwnode()
Dmitry Torokhov <[email protected]> Sun, 22 Mar 2026 18:54:24 -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-6-b72eb22a1215@gmail.com> |
In preparation to class_find_device_by_of_node() going away switch to using class_find_device_by_fwnode(). Signed-off-by: Dmitry Torokhov <[email protected]> --- drivers/mux/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mux/core.c b/drivers/mux/core.c index 23538de2c91b..774d4cc67cc1 100644 --- a/drivers/mux/core.c +++ b/drivers/mux/core.c @@ -521,7 +521,7 @@ static struct mux_chip *of_find_mux_chip_by_node(struct device_node *np) { struct device *dev; - dev = class_find_device_by_of_node(&mux_class, np); + dev = class_find_device_by_fwnode(&mux_class, of_fwnode_handle(np)); return dev ? to_mux_chip(dev) : NULL; } -- 2.53.0.959.g497ff81fa9-goog