Re: [PATCH 2/2] led: triggers: Add LED_INIT_DEFAULT_TRIGGER flag
From: Pavel Machek
Date: Sun Dec 09 2018 - 14:01:38 EST
On Sun 2018-12-09 19:49:42, Jacek Anaszewski wrote:
> Add the flag LED_INIT_DEFAULT_TRIGGER for indicating that trigger
> being set is a default trigger for the LED class device, and
> thus it should be initialized with settings provided in the fwnode.
> Set the flag in the led_trigger_set_default(). It is expected to be
> cleared in the activate() op of a trigger after trigger fwnode
> initialization data is parsed and applied. This should happen only
> once after LED class device registration, to allow leaving triggers
> in the idle state on re-apply and let the users apply their own
> settings without being interfered with the default ones.
> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx>
Aha, I see the user now. Sorry for the noise.
Acked-by: Pavel Machek <pavel@xxxxxx>
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Description: Digital signature