projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2e46f
)
leds: Document the context brightness_set needs
author
Richard Purdie
<rpurdie@rpsys.net>
Thu, 24 Apr 2008 22:49:30 +0000
(23:49 +0100)
committer
Richard 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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/leds.h
b/include/linux/leds.h
index ff1570f97045f74f24388b38a35023d165277159..519df72e939d30a4355747aa4cea1140b5c3bef9 100644
(file)
--- 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 */