]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
leds: Unexport of_led_get()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Jun 2025 09:26:39 +0000 (12:26 +0300)
committerLee Jones <lee@kernel.org>
Wed, 2 Jul 2025 16:18:01 +0000 (17:18 +0100)
There are no users outside the module.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250630092639.1574860-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/led-class.c
include/linux/leds.h

index c20ac8ccf52b7d79762a3aeea446389bad8443ea..669c21ef8611b8c874d604e5ceee439a1d7f0db6 100644 (file)
@@ -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
index b3f0aa0810649613a12e98f0d53981f9175f0c12..b16b803cc1ac5193d21cc42dfead6240d02be217 100644 (file)
@@ -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);