From: Richard Purdie Date: Thu, 24 Apr 2008 22:49:30 +0000 (+0100) Subject: leds: Document the context brightness_set needs X-Git-Tag: v2.6.26-rc1~1057^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e214e0fa21465cf2749ca7d5a072cf8591f3213;hp=3b2e46f8c4a5f2d7856c490ab5f0c46b65e2cb99;p=linux-2.6 leds: Document the context brightness_set needs Make sure there is no confusion about the contexts brightness_set can be called under by documenting it. Signed-off-by: Richard Purdie --- diff --git a/include/linux/leds.h b/include/linux/leds.h index ff1570f970..519df72e93 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -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 */