diff options
author | Corentin Chary <corentincj@iksaif.net> | 2008-09-24 04:35:55 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-10-22 16:00:30 -0400 |
commit | e3deda9c87ac5eef2b5d18cd0b5511370979ca26 (patch) | |
tree | 41b87901d9683f2fe0b3f2993c299a9e7b58e99f /drivers | |
parent | 5d1e072b6b9cffebefa681faca1c6d608310d4b2 (diff) |
asus-laptop: Fix the led behavior with value > 1
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/asus-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/asus-laptop.c b/drivers/misc/asus-laptop.c index df82cda87694..57d81c713eab 100644 --- 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) | |||
351 | static void object##_led_set(struct led_classdev *led_cdev, \ | 351 | static void object##_led_set(struct led_classdev *led_cdev, \ |
352 | enum led_brightness value) \ | 352 | enum led_brightness value) \ |
353 | { \ | 353 | { \ |
354 | object##_led_wk = value; \ | 354 | object##_led_wk = (value > 0) ? 1 : 0; \ |
355 | queue_work(led_workqueue, &object##_led_work); \ | 355 | queue_work(led_workqueue, &object##_led_work); \ |
356 | } \ | 356 | } \ |
357 | static void object##_led_update(struct work_struct *ignored) \ | 357 | static void object##_led_update(struct work_struct *ignored) \ |