]> git.baikalelectronics.ru Git - kernel.git/commit
leds: add new field to led_classdev struct to save activation state
authorShuah Khan <shuahkhan@gmail.com>
Tue, 29 May 2012 22:07:27 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:31 +0000 (16:22 -0700)
commit1d2cb23e543f78f044efe9760cfb97ff4994c73f
treef3af8c9307bdf3b06b9fc21df9aea0356b89e2b5
parent9befe2c40046402e285abd1ac15ff7de015059be
leds: add new field to led_classdev struct to save activation state

Add a new field to led_classdev to save activattion state after activate
routine is successful.  This saved state is used in deactivate routine to
do cleanup such as removing device files, and free memory allocated during
activation.  Currently trigger_data not being null is used for this
purpose.

Existing triggers will need changes to use this new field.

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>
include/linux/leds.h