commit | 230c14343bc3845970c57da5a6ec7c84179add8c | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Thu Jul 02 18:16:16 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Aug 05 21:06:14 2015 -0600 |
tree | 63862258962754b9443a4737822feb54be7155b5 | |
parent | 004ee3b517566db49a6bf2dd7a299ee0f248d129 [diff] |
dm: gpio: Check a GPIO is valid before using it 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@chromium.org>