]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
leds: trigger: pattern: Add pattern initialization from Device Tree
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 9 Jan 2019 14:44:47 +0000 (15:44 +0100)
committerJacek Anaszewski <jacek.anaszewski@gmail.com>
Wed, 16 Jan 2019 21:08:47 +0000 (22:08 +0100)
commitaa6fd10481bdb1af2d4a4b5975e23674e989cd81
treeb4a949c3d934b1a0dd84e6c6795f7fba6c89b5fd
parent8e1f456129e61371fb190c71ea182a9f6e21282e
leds: trigger: pattern: Add pattern initialization from Device Tree

Allow initialization of pattern used in pattern trigger from Device Tree
property.

This is especially useful for embedded systems where the pattern trigger
would be used to indicate the process of boot status in a nice,
user-friendly blinking way.  This initialization pattern will be used
till user-space is brought up and sets its own pattern, indicating the
boot status is for example finished.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
drivers/leds/trigger/ledtrig-pattern.c