You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LED_DT_SPEC_GET_BY_IDX allows to initialize a led_dt_spec structure from
a phandle array of LED child nodes.
A such array can be found in a leds-group-multicolor compatible DT node.
Here is an example of DT fragment:
leds {
compatible = "gpio-leds";
led0: led_0 {
...
};
led1: led_1 {
...
};
led2: led_2 {
...
};
};
multi_led: multi-led {
compatible = "leds-group-multicolor";
leds = <&led0>, <&led1>, <&led2>;
};
This macro will be used by the leds-group-multicolor driver to
initialize the struct led_dt_spec associated to each phandle.
Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
0 commit comments