leds: convert blink timer to workqueue
authorVincent Donnefort <vdonnefort@gmail.com>
Sat, 14 Jun 2014 09:21:40 +0000 (02:21 -0700)
committerBryan Wu <cooloney@gmail.com>
Thu, 3 Jul 2014 19:02:14 +0000 (12:02 -0700)
commit8b37e1bef5a6b60e949e28a4db3006e4b00bd758
tree3d9e31e6cb46cfa4bfc8f746b15dd737c0e068b2
parent7e7743901b53dd71bb7332b16b14bcce15ebcd69
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>
drivers/leds/led-class.c
drivers/leds/led-core.c
include/linux/leds.h