]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
dm: gpio: Add error handling and a function to claim vector GPIOs
authorSimon Glass <sjg@chromium.org>
Wed, 15 Apr 2015 03:03:20 +0000 (21:03 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:39:33 +0000 (22:39 +0200)
commit405ffa07fb8c3d97e25582a0fb7b42403800fb5b
treeb54cafb85fec388d5d092e95d38ab85563540302
parentc912f3fe911cef2db1c1fc4216d27eb01df981df
dm: gpio: Add error handling and a function to claim vector GPIOs

gpio_get_values_as_int() should return an error if something goes wrong.
Also provide gpio_claim_vector(), a function to request the GPIOs and set
them to input mode. Otherwise callers have to do this themselves.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h