Skip to content

Commit b6de441

Browse files
dtorlag-linaro
authored andcommitted
leds: led-class: Switch to using class_find_device_by_fwnode()
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]> Link: https://patch.msgid.link/20260322-remove-device-find-by-of-node-v1-5-b72eb22a1215@gmail.com Signed-off-by: Lee Jones <[email protected]>
1 parent b727ba2 commit b6de441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/leds/led-class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static struct led_classdev *of_led_get(struct device_node *np, int index,
273273
if (!led_node)
274274
return ERR_PTR(-ENOENT);
275275

276-
led_dev = class_find_device_by_of_node(&leds_class, led_node);
276+
led_dev = class_find_device_by_fwnode(&leds_class, of_fwnode_handle(led_node));
277277
of_node_put(led_node);
278278

279279
return led_module_get(led_dev);

0 commit comments

Comments
 (0)