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 /include/of.h | |
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 'include/of.h')
-rw-r--r-- | include/of.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/of.h b/include/of.h index f1f555fcb5..f33ed20bbd 100644 --- a/include/of.h +++ b/include/of.h @@ -96,9 +96,6 @@ static inline void of_write_number(void *__cell, u64 val, int size) } } -int of_get_named_gpio(struct device_node *np, - const char *propname, int index); - void of_print_property(const void *data, int len); void of_print_cmdline(struct device_node *root); |