]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: change existing triggers to use activated flag
authorShuah Khan <shuahkhan@gmail.com>
Thu, 3 May 2012 05:44:25 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:48 +0000 (15:46 +1000)
commitf9bad05e9eef301f0ed33b3d9907d23b5c0776a5
tree2c2bdea12aa6ebca28203bc9b2f4212478936de6
parent816773311b01a8e8ea84ab0331252f800eda9c14
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