projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d1e072
)
asus-laptop: Fix the led behavior with value > 1
author
Corentin Chary
<corentincj@iksaif.net>
Wed, 24 Sep 2008 08:35:55 +0000
(10:35 +0200)
committer
Len Brown
<len.brown@intel.com>
Wed, 22 Oct 2008 20:00:30 +0000
(16:00 -0400)
Fix http://bugzilla.kernel.org/show_bug.cgi?id=11613 .
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/asus-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/misc/asus-laptop.c
b/drivers/misc/asus-laptop.c
index df82cda87694ff2b470d0d7e4783ced7d841f3cf..57d81c713eab24e59e4981212fb21b1422055dab 100644
(file)
--- a/
drivers/misc/asus-laptop.c
+++ b/
drivers/misc/asus-laptop.c
@@
-351,7
+351,7
@@
static void write_status(acpi_handle handle, int out, int mask)
static void object##_led_set(struct led_classdev *led_cdev, \
enum led_brightness value) \
{ \
- object##_led_wk =
value;
\
+ object##_led_wk =
(value > 0) ? 1 : 0;
\
queue_work(led_workqueue, &object##_led_work); \
} \
static void object##_led_update(struct work_struct *ignored) \