提交 2e214e0f 编写于 作者: R Richard Purdie

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: NRichard Purdie <rpurdie@rpsys.net>
上级 3b2e46f8
...@@ -35,6 +35,7 @@ struct led_classdev { ...@@ -35,6 +35,7 @@ struct led_classdev {
#define LED_SUSPENDED (1 << 0) #define LED_SUSPENDED (1 << 0)
/* Set LED brightness level */ /* Set LED brightness level */
/* Must not sleep, use a workqueue if needed */
void (*brightness_set)(struct led_classdev *led_cdev, void (*brightness_set)(struct led_classdev *led_cdev,
enum led_brightness brightness); enum led_brightness brightness);
/* Get LED brightness level */ /* Get LED brightness level */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册