[PATCH 05/10] leds: led-class: switch to using class_find_device_by_fwnode()

Dmitry Torokhov posted 10 patches 1 week, 4 days ago
[PATCH 05/10] leds: led-class: switch to using class_find_device_by_fwnode()
Posted by Dmitry Torokhov 1 week, 4 days ago
In preparation to class_find_device_by_of_node() going away switch to
using class_find_device_by_fwnode().

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/leds/led-class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index d34a19453560..8d7ec9ccb173 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -273,7 +273,7 @@ static struct led_classdev *of_led_get(struct device_node *np, int index,
 	if (!led_node)
 		return ERR_PTR(-ENOENT);
 
-	led_dev = class_find_device_by_of_node(&leds_class, led_node);
+	led_dev = class_find_device_by_fwnode(&leds_class, of_fwnode_handle(led_node));
 	of_node_put(led_node);
 
 	return led_module_get(led_dev);

-- 
2.53.0.959.g497ff81fa9-goog
Re: (subset) [PATCH 05/10] leds: led-class: switch to using class_find_device_by_fwnode()
Posted by Lee Jones 3 days, 11 hours ago
On Sun, 22 Mar 2026 18:54:23 -0700, Dmitry Torokhov wrote:
> In preparation to class_find_device_by_of_node() going away switch to
> using class_find_device_by_fwnode().

Applied, thanks!

[05/10] leds: led-class: switch to using class_find_device_by_fwnode()
        commit: b6de441f8ce22e3ead3b858342fe5652598a3572

--
Lee Jones [李琼斯]