Skip to contentSkip to conversation

leds: Unexport of_led_get()

PATCH Applied Andy Shevchenko 2 participants 2 messages Jun 30, 2025 – Jul 2, 2025 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: Unexport of_led_get()

There are no users outside the module.

---
 drivers/leds/led-class.c | 3 +--
 include/linux/leds.h     | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/leds/led-class.c +1 -2
index eaeb433dcc3e..859056dd1dee 100644
@@ -256,7 +256,7 @@ static const struct class leds_class = {
  * Returns the LED device parsed from the phandle specified in the "leds"
  * property of a device tree node or a negative error-code on failure.
  */
-struct led_classdev *of_led_get(struct device_node *np, int index)
+static struct led_classdev *of_led_get(struct device_node *np, int index)
 {
 	struct device *led_dev;
 	struct device_node *led_node;
@@ -270,7 +270,6 @@ struct led_classdev *of_led_get(struct device_node *np, int index)
 
 	return led_module_get(led_dev);
 }
-EXPORT_SYMBOL_GPL(of_led_get);
 
 /**
  * led_put() - release a LED device
include/linux/leds.h +0 -1
index b3f0aa081064..b16b803cc1ac 100644
@@ -294,7 +294,6 @@ void led_remove_lookup(struct led_lookup_data *led_lookup);
 struct led_classdev *__must_check led_get(struct device *dev, char *con_id);
 struct led_classdev *__must_check devm_led_get(struct device *dev, char *con_id);
 
-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);
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw

Re: (subset) [PATCH v1 1/1] leds: Unexport of_led_get()

Quoted 3 lines · Andy Shevchenko

There are no users outside the module.

Applied, thanks!

[1/1] leds: Unexport of_led_get()

      commit: cb335325b1431152f696c53e32465ba192cd119a

--
Lee Jones [李琼斯]