[U-Boot] [PATCH v2 08/15] dm: omap: gpio: Put _get_gpio_value() logic into its own function

Simon Glass sjg at chromium.org
Fri Oct 24 05:52:06 CEST 2014


On 22 October 2014 21:37, Simon Glass <sjg at chromium.org> wrote:
> Add a separate internal helper function to get a GPIO value, so that we
> will be able to call it with the driver model version and avoid code
> duplication.
>
> Also move gpio_get_bank() and check_gpio() down below the helper functions
> as these won't be needed with driver model.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Tom Rini <trini at ti.com>
> ---
>
> Changes in v2: None
>
>  drivers/gpio/omap_gpio.c | 78 ++++++++++++++++++++++++++----------------------
>  1 file changed, 42 insertions(+), 36 deletions(-)

Applied to u-boot-dm/master


More information about the U-Boot mailing list