linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] led: core: fix misleading comment after workqueue removal from drivers
@ 2016-01-10 17:16 Heiner Kallweit
  2016-01-21  9:03 ` Jacek Anaszewski
  0 siblings, 1 reply; 4+ messages in thread
From: Heiner Kallweit @ 2016-01-10 17:16 UTC (permalink / raw)
  To: Jacek Anaszewski, linux-leds

Now that workqueues have been removed from individual drivers and
were replaced with a core-internal workqueue we shouldn't
encourage people to add new workqueues to drivers.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 include/linux/leds.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/linux/leds.h b/include/linux/leds.h
index bc1476f..4429887 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -50,7 +50,10 @@ struct led_classdev {
 #define LED_DEV_CAP_FLASH	(1 << 23)
 
 	/* Set LED brightness level */
-	/* Must not sleep, use a workqueue if needed */
+	/* Must not sleep. If no non-blocking version can be provided
+	 * set brightness_set_blocking only. The LED core will use an
+	 * internal work queue to create a non-blocking version.
+	 */
 	void		(*brightness_set)(struct led_classdev *led_cdev,
 					  enum led_brightness brightness);
 	/*
-- 
2.7.0

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

end of thread, other threads:[~2016-01-21 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-10 17:16 [PATCH] led: core: fix misleading comment after workqueue removal from drivers Heiner Kallweit
2016-01-21  9:03 ` Jacek Anaszewski
2016-01-21  9:50   ` Heiner Kallweit
2016-01-21 11:05     ` Jacek Anaszewski

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).