]> git.sur5r.net Git - u-boot/commit
dm: omap: gpio: Put _get_gpio_value() logic into its own function
authorSimon Glass <sjg@chromium.org>
Thu, 23 Oct 2014 03:37:08 +0000 (21:37 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:07 +0000 (19:29 -0600)
commitd57b61143d8c74dee392fc5be52cb6ec5a15b8fc
treee0a563c6a8bb2380940e7727d01482b84ec2582d
parent2539f3926c5d969c76a34d680bc70f82ec8f25d5
dm: omap: gpio: Put _get_gpio_value() logic into its own function

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@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/gpio/omap_gpio.c