diff options
author | Vincent Donnefort <vdonnefort@gmail.com> | 2014-06-14 02:21:40 -0700 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-07-03 12:02:14 -0700 |
commit | 8b37e1bef5a6b60e949e28a4db3006e4b00bd758 (patch) | |
tree | 3d9e31e6cb46cfa4bfc8f746b15dd737c0e068b2 /include/linux/leds.h | |
parent | 7e7743901b53dd71bb7332b16b14bcce15ebcd69 (diff) | |
download | op-kernel-dev-8b37e1bef5a6b60e949e28a4db3006e4b00bd758.zip op-kernel-dev-8b37e1bef5a6b60e949e28a4db3006e4b00bd758.tar.gz |
leds: convert blink timer to workqueue
This patch converts the blink timer from led-core to workqueue which is more
suitable for this kind of non-priority operations. Moreover, timer may lead to
errors when a LED setting function use a scheduling function such as pinctrl
which is using mutex.
Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'include/linux/leds.h')
-rw-r--r-- | include/linux/leds.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/leds.h b/include/linux/leds.h index e436864..6a599dc 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -15,7 +15,6 @@ #include <linux/list.h> #include <linux/spinlock.h> #include <linux/rwsem.h> -#include <linux/timer.h> #include <linux/workqueue.h> struct device; @@ -69,7 +68,7 @@ struct led_classdev { const char *default_trigger; /* Trigger to use */ unsigned long blink_delay_on, blink_delay_off; - struct timer_list blink_timer; + struct delayed_work blink_work; int blink_brightness; struct work_struct set_brightness_work; |