ledtrig-ide-disk: use generic one-shot blink api
authorFabio Baltieri <fabio.baltieri@gmail.com>
Sat, 26 May 2012 23:19:23 +0000 (07:19 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Mon, 23 Jul 2012 23:52:34 +0000 (07:52 +0800)
commit3740e49c668bbe7719f292c24c4c5f152a88b97e
treefd61a4ba17e46f347cc5e3d151fc238d0d2b1c7d
parent5bb629c504394f4d42c53a25d75ccb02a393f92f
ledtrig-ide-disk: use generic one-shot blink api

Convert ledtrig-ide-disk code to use the generic API for one-shot LED
blinking.

This patch changes slightly the behaviour of the trigger, as while the
original version kept the LED on under heavy activity, the new one keeps
a constant on-off blink at 1 / (2 * BLINK_DELAY) Hz.

(bryan.wu@canonical.com: remove 2 useless included header files)

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/ledtrig-ide-disk.c