All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] led: core: fix misleading comment after workqueue removal from drivers
@ 2016-01-21 22:11 Heiner Kallweit
  2016-01-22  8:37 ` Jacek Anaszewski
  0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2016-01-21 22:11 UTC (permalink / raw)
  To: Jacek Anaszewski; +Cc: 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>
---
v2:
- make comment simpler and clearer
---
 include/linux/leds.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/leds.h b/include/linux/leds.h
index bc1476f..e3470e7 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -49,8 +49,10 @@ struct led_classdev {
 #define LED_SYSFS_DISABLE	(1 << 22)
 #define LED_DEV_CAP_FLASH	(1 << 23)
 
-	/* Set LED brightness level */
-	/* Must not sleep, use a workqueue if needed */
+	/* Set LED brightness level
+	 * Must not sleep. Use brightness_set_blocking for drivers
+	 * that can sleep while setting brightness.
+	 */
 	void		(*brightness_set)(struct led_classdev *led_cdev,
 					  enum led_brightness brightness);
 	/*
-- 
2.7.0

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

end of thread, other threads:[~2016-01-22  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-21 22:11 [PATCH v2] led: core: fix misleading comment after workqueue removal from drivers Heiner Kallweit
2016-01-22  8:37 ` Jacek Anaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.