]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:55 +0000 (13:48 +0200)
commit9fe2731d4e590f6ab50811ed6fb946f60c752040
treeba09626e88288dfeffbbbb606d03b3081d8a7850
parentc464b5476371430e0a0b720eb8a966006e26ce84
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