Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: Unexport of_led_get()

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>

authored by

Andy Shevchenko and committed by
Lee Jones
cb335325 c3c38e80

+1 -3
+1 -2
drivers/leds/led-class.c
··· 256 256 * Returns the LED device parsed from the phandle specified in the "leds" 257 257 * property of a device tree node or a negative error-code on failure. 258 258 */ 259 - struct led_classdev *of_led_get(struct device_node *np, int index) 259 + static struct led_classdev *of_led_get(struct device_node *np, int index) 260 260 { 261 261 struct device *led_dev; 262 262 struct device_node *led_node; ··· 270 270 271 271 return led_module_get(led_dev); 272 272 } 273 - EXPORT_SYMBOL_GPL(of_led_get); 274 273 275 274 /** 276 275 * led_put() - release a LED device
-1
include/linux/leds.h
··· 294 294 struct led_classdev *__must_check led_get(struct device *dev, char *con_id); 295 295 struct led_classdev *__must_check devm_led_get(struct device *dev, char *con_id); 296 296 297 - extern struct led_classdev *of_led_get(struct device_node *np, int index); 298 297 extern void led_put(struct led_classdev *led_cdev); 299 298 struct led_classdev *__must_check devm_of_led_get(struct device *dev, 300 299 int index);