]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: led: Adjust the LED uclass
authorSimon Glass <sjg@chromium.org>
Mon, 10 Apr 2017 17:34:54 +0000 (11:34 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 15 Apr 2017 01:38:57 +0000 (19:38 -0600)
commitddae9fcddc48d1e624c941148d0df5a4fc7d7d5c
tree59af471a5420bfd9ac4936bac0e3bccb37d72e4c
parent56e19871dc2a05aa5508ea51af35df59bbdb6cf5
dm: led: Adjust the LED uclass

At present this is very simple, supporting only on and off. We want to
also support toggling and blinking. As a first step, change the name of
the main method and use an enum to indicate the state.

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