From: Heiner Kallweit Date: Thu, 21 Jan 2016 22:11:25 +0000 (+0100) Subject: leds: core: fix misleading comment after workqueue removal from drivers X-Git-Tag: v4.6-rc1~143^2~18 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=70b2563b35b3edcf67819b99e560f3f0f6ce4a9f;p=karo-tx-linux.git leds: core: fix misleading comment after workqueue removal from drivers 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 Signed-off-by: Jacek Anaszewski --- diff --git a/include/linux/leds.h b/include/linux/leds.h index bc1476fda96e..e3470e732ede 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); /*