--- zzzz-none-000/linux-4.9.279/include/linux/leds.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/include/linux/leds.h 2023-02-08 11:43:43.000000000 +0000 @@ -21,6 +21,7 @@ #include struct device; +struct device_node; /* * LED Core */ @@ -119,6 +120,11 @@ extern void led_classdev_suspend(struct led_classdev *led_cdev); extern void led_classdev_resume(struct led_classdev *led_cdev); +extern struct led_classdev *of_led_get(struct device_node *np, int index); +extern void led_put(struct led_classdev *led_cdev); +struct led_classdev *__must_check devm_of_led_get(struct device *dev, + int index); + /** * led_blink_set - set blinking with software fallback * @led_cdev: the LED to start blinking