]> err.no Git - linux-2.6/commitdiff
leds: Document the context brightness_set needs
authorRichard Purdie <rpurdie@rpsys.net>
Thu, 24 Apr 2008 22:49:30 +0000 (23:49 +0100)
committerRichard Purdie <rpurdie@rpsys.net>
Thu, 24 Apr 2008 22:49:30 +0000 (23:49 +0100)
Make sure there is no confusion about the contexts brightness_set
can be called under by documenting it.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
include/linux/leds.h

index ff1570f97045f74f24388b38a35023d165277159..519df72e939d30a4355747aa4cea1140b5c3bef9 100644 (file)
@@ -35,6 +35,7 @@ struct led_classdev {
 #define LED_SUSPENDED          (1 << 0)
 
        /* Set LED brightness level */
+       /* Must not sleep, use a workqueue if needed */
        void            (*brightness_set)(struct led_classdev *led_cdev,
                                          enum led_brightness brightness);
        /* Get LED brightness level */