[U-Boot] [PATCH 39/55] dm: gpio: Check a GPIO is valid before using it

Simon Glass sjg at chromium.org
Tue Jul 28 01:31:20 CEST 2015


On 2 July 2015 at 18:16, Simon Glass <sjg at chromium.org> wrote:
> Since a gpio_desc is allowed to be invalid we should return an error
> indicating that the operation cannot be completed. This can happen if the
> GPIO is optional - e.g. some devices may have a reset line and some may
> not.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/gpio/gpio-uclass.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Applied to u-boot-dm.


More information about the U-Boot mailing list