]> git.baikalelectronics.ru Git - kernel.git/commit
leds: triggers: send uevent when changing triggers
authorColin Cross <ccross@android.com>
Mon, 27 Aug 2012 01:31:49 +0000 (09:31 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Tue, 11 Sep 2012 10:32:41 +0000 (18:32 +0800)
commit14fb0b5de9d9a06d158b956e88d9e6d9eab6605d
tree057217b5690f6db9421080a7aa039a2fe4899463
parenta27fbeab8e6471e89833cca07163cc61a12fddd2
leds: triggers: send uevent when changing triggers

Some triggers create sysfs files when they are enabled. Send a uevent
"change" notification whenever the trigger is changed to allow userspace
processes such as udev to modify permissions on the new files.

A change notification will also be sent during registration of led class
devices or led triggers if the default trigger of an led class device
is found.

(bryan.wu@canonical.com: rename trigger to trig to fix the build error)

Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/led-triggers.c