commit | bef54db738ed40dd222c2d31774e419bd453882f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Apr 14 21:03:20 2015 -0600 |
committer | Tom Warren <twarren@nvidia.com> | Wed May 13 09:24:06 2015 -0700 |
tree | fc9cb3eac617e65544c493b0a948bf752087b235 | |
parent | 10d8904f1c2113f4b6c81b0685e4a4b695bb88f3 [diff] |
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>