1bbd28d215
This function should also be part of the GPIO API, so add it. Signed-off-by: Simon Glass <sjg@chromium.org>