]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: led: Support "default-state" property
authorPatrick Bruenn <p.bruenn@beckhoff.com>
Wed, 11 Apr 2018 09:16:27 +0000 (11:16 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 May 2018 13:07:33 +0000 (09:07 -0400)
commitd90f0d4cae5c9349a412e3f924bf25e20e35ddfa
tree8d8b4015294e415f20a2097b929285537fdbf1c1
parent732bc7ce3fcfde5f102a92a9a7f3ed67f4af9a3a
dm: led: Support "default-state" property

Add support for the device tree property "default-state". This feature
might be useful for LEDs indicating "power on" or similar states.

Note: Even with this commit gpio-leds remain in reset state. That's
because the led_gpio is not probed until DM_FLAG_ACTIVATED is set.

Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
drivers/led/led_gpio.c