]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: change existing triggers to use activated flag
authorShuah Khan <shuahkhan@gmail.com>
Wed, 25 Apr 2012 01:04:31 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:33 +0000 (15:17 +1000)
commit8eff8454af1008d60c71ddeadce236bc2238cee9
tree76d701d3442789f770260ce4d54f9141883cb4a6
parente69861ad1643b0afa3e8f277257f306385de7ebf
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/leds/ledtrig-backlight.c
drivers/leds/ledtrig-gpio.c
drivers/leds/ledtrig-heartbeat.c