]> git.baikalelectronics.ru Git - uboot.git/commit
dm: led: Add support for getting the state of an LED
authorSimon Glass <sjg@chromium.org>
Mon, 10 Apr 2017 17:34:55 +0000 (11:34 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 15 Apr 2017 01:38:57 +0000 (19:38 -0600)
commita052f1bc7bdbf07423aaa878b94e9270fa847256
treec687de5e960d0bb4c1de07f1b322119e46859349
parent94da614a5f79e4f0dc95cabcf9d4b7826fd320e9
dm: led: Add support for getting the state of an LED

It is useful to be able to read the LED as well as write it. Add this to
the uclass and update the GPIO driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ziping Chen <techping.chan@gmail.com>
drivers/led/led-uclass.c
drivers/led/led_gpio.c
include/led.h
test/dm/led.c