]> git.baikalelectronics.ru Git - uboot.git/commit
dm: led: move default state support in led uclass
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 27 Jul 2018 14:37:07 +0000 (16:37 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 10 Aug 2018 14:27:32 +0000 (10:27 -0400)
commitcf155b5b09fcb438b263709d557f17c07b4f72ab
treee01b3d1bfdb753cd47cafbb08b4eb5ac682fb490
parenta54a34bf69f219d6d7f53e026dbb16e4f34723b6
dm: led: move default state support in led uclass

This patch save common LED property "default-state" value
in post bind of LED uclass.
The configuration for this default state is only performed when
led_default_state() is called;
It can be called in your board_init()
or it could added in init_sequence_r[] in future.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/led/led-uclass.c
drivers/led/led_gpio.c
include/led.h