diff options
author | Marek Vasut | 2022-04-22 15:34:00 +0200 |
---|---|---|
committer | Tom Rini | 2022-04-28 09:26:43 -0400 |
commit | 01074697801bc0709ac2ca915250096311ec1b7e (patch) | |
tree | cb70616ba6e61fa923c36f2d8be7bcc551984bb7 /board/bosch | |
parent | e3aa76644c2af14631a1fb5ba17022e0a396a6c4 (diff) |
led: gpio: Use NOP uclass driver for top-level node
The top level DT node of gpio-leds is not a LED itself, bind NOP uclass
driver to it, and bind different LED uclass driver to its subnodes which
represent the actual LEDs. This simplifies the probe() implementation
and fixes the bogus top-level not-an-LED in 'led list' command output:
```
=> led list
led Error -121 <--- This is removed/fixed by this patch
green:user0 off
```
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Steven Lawrance <steven.lawrance@softathome.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'board/bosch')
0 files changed, 0 insertions, 0 deletions