From: Colin Cross Date: Mon, 27 Aug 2012 01:31:49 +0000 (+0800) Subject: leds: triggers: send uevent when changing triggers X-Git-Tag: v3.7-rc1~60^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c47742f79d9240f90af9a6722fe8bb3fa8c0f9;p=pandora-kernel.git 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 Acked-by: Greg Kroah-Hartman Acked-by: Henrique de Moraes Holschuh Signed-off-by: Bryan Wu --- Reading git-diff-tree failed