[U-Boot] [PATCH 2/6] led: gpio: add support for get_status function

Simon Glass sjg at chromium.org
Sat Apr 1 04:23:04 UTC 2017


On 27 March 2017 at 08:38,  <techping.chan at gmail.com> wrote:
> From: Ziping Chen <techping.chan at gmail.com>
>
> The status of a GPIO-connected LED can be read back by reading the GPO
> value.
>
> Add the support for get_status function in led_gpio driver.
>
> Signed-off-by: Ziping Chen <techping.chan at gmail.com>
> ---
>  drivers/led/led_gpio.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

(although I have a version of this patch which expands status to
return the blink state also)


More information about the U-Boot mailing list