]> git.baikalelectronics.ru Git - kernel.git/commit
leds: change existing triggers to use activated flag
authorShuah Khan <shuahkhan@gmail.com>
Tue, 29 May 2012 22:07:28 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:31 +0000 (16:22 -0700)
commit85a70f094f942301dddeb1eaf134b5a528374bc2
treeacbe5d242a76b2296d15804c4cc2766ca1295d4b
parent1d2cb23e543f78f044efe9760cfb97ff4994c73f
leds: change existing triggers to use activated flag

Change existing triggers backlight, gpio, and heartbeat to use the new
->activated flag to set activate successful status in their activate
routines and check it in their deactivate routines to do cleanup.

Signed-off-by: Shuah Khan <shuahkhan@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/ledtrig-backlight.c
drivers/leds/ledtrig-gpio.c
drivers/leds/ledtrig-heartbeat.c