diff options
| author | Marek Vasut <[email protected]> | 2022-04-22 15:15:55 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-28 09:26:43 -0400 |
| commit | e3aa76644c2af14631a1fb5ba17022e0a396a6c4 (patch) | |
| tree | 9629063d9896b3081b11fcc1551bf852afa90387 /include/linux/stringify.h | |
| parent | c438866b16745fc69f0f05636b9cf69b16378fca (diff) | |
led: gpio: Check device compatible string to determine the top level node
Since 2d1deaf88ed ("led: gpio: Drop duplicate OF "label" property parsing"),
all LED nodes have some sort of label. Use device_is_compatible(..."leds-gpio")
to determine whether this is a top-level node, since it is only the top
level node which is compatible with "leds-gpio", the GPIO LEDs subnodes
are not.
Fixes: 2d1deaf88ed ("led: gpio: Drop duplicate OF "label" property parsing")
Signed-off-by: Marek Vasut <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Steven Lawrance <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Tested-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
