diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2016-01-22 01:11:25 +0300 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2016-03-14 11:22:20 +0300 |
commit | 70b2563b35b3edcf67819b99e560f3f0f6ce4a9f (patch) | |
tree | 39c89d932a8347faf9bc5695b9a80eed7c119214 /include | |
parent | b562e44f507e863c6792946e4e1b1449fbbac85d (diff) | |
download | linux-70b2563b35b3edcf67819b99e560f3f0f6ce4a9f.tar.xz |
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 <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/leds.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); /* |