Skip to content
Snippets Groups Projects
Commit fb8a5ffc authored by Simon Glass's avatar Simon Glass
Browse files

led: Return -ENODEV if the LED device cannot be found


We normally use -ENODEV for a missing device, rather than -ENOENT. The
latter is reserved for when we have a device but cannot find something
within it.

Also avoid looking at the root LED device since it is only a container.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 8e6cc461
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment