leds: core: add managed version of led_trigger_register
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 2 Jan 2016 00:36:41 +0000 (01:36 +0100)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:40 +0000 (09:57 +0100)
commit9534cc31dda2bb129480ce2db92bf7bc1ef470ed
tree7db0ea367e477eccad2f0a3fbb38df2fe783040e
parent1259efaab84fbc0a307477e0d2734793aa556814
leds: core: add managed version of led_trigger_register

Complementing devm_led_classdev_register add a managed version of
led_trigger_register.

I omit a managed version of led_classdev_unregister as the equivalent
devm_led_classdev_unregister isn't used in the kernel as of today.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/led-triggers.c
include/linux/leds.h