]> git.sur5r.net Git - u-boot/commit
led: Return -ENODEV if the LED device cannot be found
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2015 18:54:33 +0000 (12:54 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:32 +0000 (17:39 -0600)
commitfb8a5ffc77597a99678dbd5077f29ec9df54bdbe
tree2c8c1b149b87b289471269fe3b8624484c2d839e
parent8e6cc46178f9eecada860f7a8f14672e6a94c2de
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: Simon Glass <sjg@chromium.org>
drivers/led/led-uclass.c
include/led.h