diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-07-02 20:14:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-05 08:26:57 +0200 |
commit | 61bb8bfc7cf12a32d547c0084a2999712bef6443 (patch) | |
tree | c7fc71cc80d506ffdad4fb7b4b35ad4c4bf75a6f /drivers/spi | |
parent | 483424e0276309264f5a517f2d7be217557349fb (diff) | |
download | barebox-61bb8bfc7cf12a32d547c0084a2999712bef6443.tar.gz barebox-61bb8bfc7cf12a32d547c0084a2999712bef6443.tar.xz |
OF: gpio: convert DT based gpio handling to new OF API
This creates a Linux OF API compatible counterpart of of_get_named_gpio_flags.
Existing of_get_named_gpio is converted to a static inline function, which is
in the corresponding of_gpio.h include. While at it, drivers/of/gpio.c is
also renamed to drivers/of/of_gpio.c to follow the of_ prefix naming scheme.
The new include is also added to existing users of of_get_named_gpio.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/imx_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c index b749337daf..6f942bf57b 100644 --- a/drivers/spi/imx_spi.c +++ b/drivers/spi/imx_spi.c @@ -23,6 +23,7 @@ #include <errno.h> #include <malloc.h> #include <gpio.h> +#include <of_gpio.h> #include <mach/spi.h> #include <mach/generic.h> #include <linux/clk.h> |