]> git.ipfire.org Git - people/ms/u-boot.git/commit - test/dm/led.c
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)
commit8f4b612333ee0381eedf767c1c005a830886df27
treec687de5e960d0bb4c1de07f1b322119e46859349
parentddae9fcddc48d1e624c941148d0df5a4fc7d7d5c
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