linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] leds: Unexport of_led_get()
@ 2025-06-30  9:26 Andy Shevchenko
  2025-07-02 16:18 ` (subset) " Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2025-06-30  9:26 UTC (permalink / raw)
  To: Lee Jones, linux-leds, linux-kernel; +Cc: Pavel Machek, Andy Shevchenko

There are no users outside the module.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/leds/led-class.c | 3 +--
 include/linux/leds.h     | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c
index eaeb433dcc3e..859056dd1dee 100644
--- a/drivers/leds/led-class.c
+++ b/drivers/leds/led-class.c
@@ -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
diff --git a/include/linux/leds.h b/include/linux/leds.h
index b3f0aa081064..b16b803cc1ac 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -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);
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: (subset) [PATCH v1 1/1] leds: Unexport of_led_get()
  2025-06-30  9:26 [PATCH v1 1/1] leds: Unexport of_led_get() Andy Shevchenko
@ 2025-07-02 16:18 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2025-07-02 16:18 UTC (permalink / raw)
  To: Lee Jones, linux-leds, linux-kernel, Andy Shevchenko; +Cc: Pavel Machek

On Mon, 30 Jun 2025 12:26:39 +0300, Andy Shevchenko wrote:
> There are no users outside the module.
> 
> 

Applied, thanks!

[1/1] leds: Unexport of_led_get()
      commit: cb335325b1431152f696c53e32465ba192cd119a

--
Lee Jones [李琼斯]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-02 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30  9:26 [PATCH v1 1/1] leds: Unexport of_led_get() Andy Shevchenko
2025-07-02 16:18 ` (subset) " Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).